Index: third_party/polymer/v0_8/components/polymer/src/lib/settings.html |
diff --git a/third_party/polymer/v0_8/components/polymer/src/lib/settings.html b/third_party/polymer/v0_8/components/polymer/src/lib/settings.html |
deleted file mode 100644 |
index 1d662cf09e0f2c3e6d524aeba2be81dcc5b1392a..0000000000000000000000000000000000000000 |
--- a/third_party/polymer/v0_8/components/polymer/src/lib/settings.html |
+++ /dev/null |
@@ -1,52 +0,0 @@ |
-<!-- |
-@license |
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt |
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
-Code distributed by Google as part of the polymer project is also |
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
---> |
-<script> |
- |
- Polymer = { |
- Settings: (function() { |
- // NOTE: Users must currently opt into using ShadowDOM. They do so by doing: |
- // Polymer = {dom: 'shadow'}; |
- // TODO(sorvell): Decide if this should be auto-use when available. |
- // TODO(sorvell): if SD is auto-use, then the flag above should be something |
- // like: Polymer = {dom: 'shady'} |
- |
- // via Polymer object |
- var user = window.Polymer || {}; |
- |
- // via url |
- location.search.slice(1).split('&').forEach(function(o) { |
- o = o.split('='); |
- o[0] && (user[o[0]] = o[1] || true); |
- }); |
- |
- var wantShadow = (user.dom === 'shadow'); |
- var hasShadow = Boolean(Element.prototype.createShadowRoot); |
- var nativeShadow = hasShadow && !window.ShadowDOMPolyfill; |
- var useShadow = wantShadow && hasShadow; |
- |
- var hasNativeImports = Boolean('import' in document.createElement('link')); |
- var useNativeImports = hasNativeImports; |
- |
- var useNativeCustomElements = (!window.CustomElements || |
- window.CustomElements.useNative); |
- |
- return { |
- wantShadow: wantShadow, |
- hasShadow: hasShadow, |
- nativeShadow: nativeShadow, |
- useShadow: useShadow, |
- useNativeShadow: useShadow && nativeShadow, |
- useNativeImports: useNativeImports, |
- useNativeCustomElements: useNativeCustomElements |
- }; |
- })() |
- }; |
- |
-</script> |