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

Unified Diff: pkg/polymer/lib/src/js/shadow_dartium.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, 10 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: pkg/polymer/lib/src/js/shadow_dartium.js
diff --git a/pkg/polymer/lib/src/js/shadow_dartium.js b/pkg/polymer/lib/src/js/shadow_dartium.js
new file mode 100644
index 0000000000000000000000000000000000000000..163f9841a3f98fb71d5dffda164204d5d967271d
--- /dev/null
+++ b/pkg/polymer/lib/src/js/shadow_dartium.js
@@ -0,0 +1,6 @@
+// Prevent polyfilled Shadow DOM in Dartium
Siggi Cherem (dart-lang) 2014/03/06 18:18:08 I wonder if this file should be here or in pkg/web
Jennifer Messerly 2014/03/06 21:05:08 Hmmm. That's a good question. I'm not sure... it's
Siggi Cherem (dart-lang) 2014/03/06 21:26:45 Got it, make sense.
+if (navigator.userAgent.indexOf('(Dart)') !== -1) {
+ window.Platform = window.Platform || {};
+ Platform.flags = Platform.flags || {};
+ Platform.flags.shadow = 'native';
+}

Powered by Google App Engine
This is Rietveld 408576698