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

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

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/src/dartium_CustomElementSupport.dart
diff --git a/tools/dom/src/dartium_CustomElementSupport.dart b/tools/dom/src/dartium_CustomElementSupport.dart
index d80f2c45f571d693e83fe5758a34cfcc54bd2a23..f221be5a4fceb990b3185194a1bdb468f2f649a6 100644
--- a/tools/dom/src/dartium_CustomElementSupport.dart
+++ b/tools/dom/src/dartium_CustomElementSupport.dart
@@ -31,6 +31,10 @@ class _VMElementUpgrader implements ElementUpgrader {
throw new UnsupportedError('Element is incorrect type');
}
+ // Remember Dart class to tagName for any upgrading done in wrap_jso.
+ var tag = element['localName'];
+ _knownCustomeElements[tag] = _type;
+
return createCustomUpgrader(_nativeType, element);
}
}

Powered by Google App Engine
This is Rietveld 408576698