Index: sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate |
diff --git a/sdk/lib/html/templates/html/impl/impl_ShadowRoot.darttemplate b/sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate |
similarity index 61% |
copy from sdk/lib/html/templates/html/impl/impl_ShadowRoot.darttemplate |
copy to sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate |
index 32c953a0f895e91db3676c694d43d22f36f01170..8d20b9d0dd123c573c93b584e834b0d5a556cc7e 100644 |
--- a/sdk/lib/html/templates/html/impl/impl_ShadowRoot.darttemplate |
+++ b/sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate |
@@ -5,11 +5,8 @@ |
// WARNING: Do not edit - generated code. |
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
+ factory $CLASSNAME(String type, [bool canBubble = true, bool cancelable = true, |
+ Object detail = null]) => _$(CLASSNAME)FactoryProvider.create$CLASSNAME( |
Anton Muhin
2012/11/06 12:28:43
no need in = null
blois
2012/11/06 22:11:44
Done.
|
+ type, canBubble, cancelable, detail); |
$!MEMBERS |
-$if DART2JS |
- static bool get supported => |
- JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); |
-$else |
- static bool get supported => _Utils.shadowRootSupported(window.document); |
-$endif |
} |