Chromium Code Reviews| Index: client/touch/EventUtil.dart |
| diff --git a/client/touch/EventUtil.dart b/client/touch/EventUtil.dart |
| index 0ff7c0c419a228fa556d0a0319f2cc287b7cc41f..b47a8a1edf0ad390aaed097d5a1b006f3d201444 100644 |
| --- a/client/touch/EventUtil.dart |
| +++ b/client/touch/EventUtil.dart |
| @@ -26,11 +26,8 @@ class EventUtil { |
| } |
| // TODO(jacobr): add a comment or remove this method. |
| - static Event createEvent(String eventType) { |
| - Event event = document.createEvent("HTMLEvents"); |
| - event.initEvent(eventType, true, true); |
| - return event; |
| - } |
| + static Event createEvent(String eventType) => |
|
Jacob
2011/10/27 23:16:05
take this a step further and kill off this now use
nweiz
2011/10/27 23:47:23
Done.
|
| + new Event(eventType, canBubble: true, cancelable: true); |
| /** |
| * Clear the keyboard focus of the currently focused element (if there is |