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

Unified Diff: tools/dom/src/dartium_CustomElementSupport.dart

Issue 1389683002: Fixed custom elements to work in Polymer (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge collision 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
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dartium_CustomElementSupport.dart
diff --git a/tools/dom/src/dartium_CustomElementSupport.dart b/tools/dom/src/dartium_CustomElementSupport.dart
index a14e07f114f012e3a43b1ff96e4a9d306dec1e8d..d80f2c45f571d693e83fe5758a34cfcc54bd2a23 100644
--- a/tools/dom/src/dartium_CustomElementSupport.dart
+++ b/tools/dom/src/dartium_CustomElementSupport.dart
@@ -26,11 +26,12 @@ class _VMElementUpgrader implements ElementUpgrader {
}
}
- Element upgrade(Element element) {
- if (element.runtimeType != _nativeType) {
+ Element upgrade(element) {
+ if (element.runtimeType != js.JsObjectImpl) {
throw new UnsupportedError('Element is incorrect type');
}
- return _Utils.changeElementWrapper(element, _type);
+
+ return createCustomUpgrader(_nativeType, element);
}
}
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698