Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index e8ac977c07e70e71c69fc15c7a3a4d30091e0d0e..156573f76ef50732d662d7b6437c54503657b90b 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -10097,12 +10097,12 @@ class Event native "*Event" { |
* This is analogous to document.createEvent. |
* Normally events should be created via their constructors, if available. |
* |
- * var e = Event.type('MouseEvent', 'mousedown', true, true); |
+ * 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; |
} |