| Index: tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
|
| index be6b7ef4852a2876ae20d30c405929082c57c761..a5305e1557bfda1edfecdcfdbc2675e00a3724cd 100644
|
| --- a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
|
| @@ -10,7 +10,11 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| factory $CLASSNAME(String type,
|
| {bool canBubble: true, bool cancelable: true, Object detail}) {
|
|
|
| - final CustomEvent e = document.$dom_createEvent("CustomEvent");
|
| + final CustomEvent e = document.$dom_createEvent('CustomEvent');
|
| +
|
| +$if DART2JS
|
| + detail = convertDartToNative_SerializedScriptValue(detail);
|
| +$endif
|
| e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
|
|
|
| return e;
|
|
|