Index: tools/dom/templates/html/impl/impl_TextEvent.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_TextEvent.darttemplate b/tools/dom/templates/html/impl/impl_TextEvent.darttemplate |
index e12cc8bf76b295b397dc26187fb98ebdebb0d483..148c718a0a3506ecd5ef02c54efdc0af4a899eec 100644 |
--- a/tools/dom/templates/html/impl/impl_TextEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_TextEvent.darttemplate |
@@ -12,7 +12,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
if (view == null) { |
view = window; |
} |
- var e = document._createEvent("TextEvent"); |
+ TextEvent e = document._createEvent("TextEvent"); |
e._initTextEvent(type, canBubble, cancelable, view, data); |
return e; |
} |