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

Side by Side Diff: pkg/web_components/lib/dart_support.js

Issue 319263002: Add "created-watcher" to the web_components package. This was adapted from (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Teaches dart2js about the wrapping that is done by the Shadow DOM polyfill.
5 (function() { 6 (function() {
6 var ShadowDOMPolyfill = window.ShadowDOMPolyfill; 7 var ShadowDOMPolyfill = window.ShadowDOMPolyfill;
7 if (!ShadowDOMPolyfill) return; 8 if (!ShadowDOMPolyfill) return;
8 9
9 if (navigator.userAgent.indexOf('(Dart)') !== -1) { 10 if (navigator.userAgent.indexOf('(Dart)') !== -1) {
10 console.error("ShadowDOMPolyfill polyfill was loaded in Dartium. This " + 11 console.error("ShadowDOMPolyfill polyfill was loaded in Dartium. This " +
11 "will not work. This indicates that Dartium's Chrome version is " + 12 "will not work. This indicates that Dartium's Chrome version is " +
12 "not compatible with this version of web_components."); 13 "not compatible with this version of web_components.");
13 } 14 }
14 15
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 57 }
57 return name; 58 return name;
58 } 59 }
59 60
60 obj = unwrapped; 61 obj = unwrapped;
61 } 62 }
62 return originalGetTag(obj); 63 return originalGetTag(obj);
63 } 64 }
64 }); 65 });
65 })(); 66 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698