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

Unified Diff: lib/interop_support.js

Issue 839013003: CustomElementProxy annotation (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: update initialize dependency Created 5 years, 11 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 | « lib/interop.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/interop_support.js
diff --git a/lib/interop_support.js b/lib/interop_support.js
index 790f8284bdbe5158035eb755bc2911eebca40770..9153f3c8105871965d835fcfb47a78dc18c5ea7b 100644
--- a/lib/interop_support.js
+++ b/lib/interop_support.js
@@ -35,7 +35,7 @@
var original = proto.createdCallback;
var newCallback = function() {
- original.call(this);
+ if (original) original.call(this);
var name = (this.getAttribute('is') || this.localName).toLowerCase();
var upgrader = upgraders[name];
if (upgrader) {
« no previous file with comments | « lib/interop.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698