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 29feca967a1d61c47a2f9107a27be4376d099eb8..c4de5c6868cc8f21b1ef47bbbe87a86dbc06f7c1 100644 |
--- a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate |
@@ -34,6 +34,11 @@ $endif |
e._initCustomEvent(type, canBubble, cancelable, null); |
} |
+$if DARTIUM |
+ // Need for identity. |
+ e.blink_jsObject['dart_class'] = e; |
+ |
+$endif |
return e; |
} |