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 e16b74a9fe70544719c8c305ed173fd36c9c8a5a..b2a787e4c52dbab31fe37cfa5b90e94b093de074 100644 |
--- a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate |
@@ -23,9 +23,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
// first-chance exceptions. Can expand this list in the future as needed. |
if (detail is List || detail is Map || detail is String || detail is num) { |
try { |
-$if DART2JS |
detail = convertDartToNative_SerializedScriptValue(detail); |
-$endif |
e._initCustomEvent(type, canBubble, cancelable, detail); |
} catch(_) { |
e._initCustomEvent(type, canBubble, cancelable, null); |
@@ -34,11 +32,6 @@ $endif |
e._initCustomEvent(type, canBubble, cancelable, null); |
} |
-$if DARTIUM |
- // Need for identity. |
- js.setDartHtmlWrapperFor(e.blink_jsObject, e); |
- |
-$endif |
return e; |
} |