Index: sdk/lib/html/dartium/html_dartium.dart |
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart |
index 4e499760c2b4b220499b3485c689a398319b596c..16de5f2d6c21ea1924936a8cb1830a6f1b419e88 100644 |
--- a/sdk/lib/html/dartium/html_dartium.dart |
+++ b/sdk/lib/html/dartium/html_dartium.dart |
@@ -10710,12 +10710,12 @@ class Event extends NativeFieldWrapperClass1 { |
* 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; |
} |
Event.internal(); |