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

Side by Side Diff: pkg/polymer/lib/src/js/use_native_dartium_shadowdom.js

Issue 182193002: [polymer] interop with polymer-element and polymer.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « pkg/polymer/lib/src/js/polymer/polymer.js.map ('k') | pkg/polymer/lib/src/loader.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Prevent polyfilled JS Shadow DOM in Dartium
2 // We need this if we want Dart code to be able to interoperate with Polymer.js
3 // code that also uses Shadow DOM.
4 // TODO(jmesserly): we can remove this code once platform.js is correctly
5 // feature detecting Shadow DOM in Dartium.
6 if (navigator.userAgent.indexOf('(Dart)') !== -1) {
7 window.Platform = window.Platform || {};
8 Platform.flags = Platform.flags || {};
9 Platform.flags.shadow = 'native';
10 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/js/polymer/polymer.js.map ('k') | pkg/polymer/lib/src/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698