Index: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
index 5d5d23a050d1e5c739a300ba7d2fd95688edd732..c6f28d544f518dc5a96d3e45eb23c32d7994ea7d 100644 |
--- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
@@ -14,7 +14,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
if (view == null) { |
view = window; |
} |
- var event = document._createEvent('MouseEvent'); |
+ MouseEvent event = document._createEvent('MouseEvent'); |
event._initMouseEvent(type, canBubble, cancelable, view, detail, |
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, |
button, relatedTarget); |