| Index: sdk/lib/html/html_common/device.dart
|
| diff --git a/sdk/lib/html/html_common/device.dart b/sdk/lib/html/html_common/device.dart
|
| index fe9ad358fe1368d8da6bf91c708cf7651accb5ed..d7fb730a00b136de4db93c2e7f6df49b2ac62266 100644
|
| --- a/sdk/lib/html/html_common/device.dart
|
| +++ b/sdk/lib/html/html_common/device.dart
|
| @@ -104,7 +104,7 @@ class Device {
|
| static bool isEventTypeSupported(String eventType) {
|
| // Browsers throw for unsupported event names.
|
| try {
|
| - var e = document.$dom_createEvent(eventType);
|
| + var e = new Event.eventType(eventType, '');
|
| return e is Event;
|
| } catch (_) { }
|
| return false;
|
|
|