Index: tools/dom/templates/html/impl/impl_Event.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Event.darttemplate b/tools/dom/templates/html/impl/impl_Event.darttemplate |
index ce130959ae445512cbb69ae6daaea256ee52a268..76c931f152c3779e79d7b246d2f07cb351614203 100644 |
--- a/tools/dom/templates/html/impl/impl_Event.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Event.darttemplate |
@@ -26,10 +26,10 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
* |
* var e = new Event.type('MouseEvent', 'mousedown', true, true); |
*/ |
- factory Event.type(String eventType, String type, [bool canBubble = true, |
+ factory Event.type(String eventType, String name, [bool canBubble = true, |
bool cancelable = true]) { |
final Event e = document.$dom_createEvent(eventType); |
- e.$dom_initEvent(type, canBubble, cancelable); |
+ e.$dom_initEvent(name, canBubble, cancelable); |
return e; |
} |
$!MEMBERS |