Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: tools/dom/templates/html/impl/impl_CustomEvent.darttemplate

Issue 1391273002: Fixed few more issues with upgrader and custom event identitiy (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698