| OLD | NEW |
| 1 (function () { | 1 (function () { |
| 2 function resolve() { | 2 function resolve() { |
| 3 document.body.removeAttribute('unresolved'); | 3 document.body.removeAttribute('unresolved'); |
| 4 } | 4 } |
| 5 if (window.WebComponents) { | 5 if (window.WebComponents) { |
| 6 addEventListener('WebComponentsReady', resolve); | 6 addEventListener('WebComponentsReady', resolve); |
| 7 } else { | 7 } else { |
| 8 if (document.readyState === 'interactive' || document.readyState === 'complete')
{ | 8 if (document.readyState === 'interactive' || document.readyState === 'complete')
{ |
| 9 resolve(); | 9 resolve(); |
| 10 } else { | 10 } else { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 settings.wantShadow = settings.dom === 'shadow'; | 22 settings.wantShadow = settings.dom === 'shadow'; |
| 23 settings.hasShadow = Boolean(Element.prototype.createShadowRoot); | 23 settings.hasShadow = Boolean(Element.prototype.createShadowRoot); |
| 24 settings.nativeShadow = settings.hasShadow && !window.ShadowDOMPolyfill; | 24 settings.nativeShadow = settings.hasShadow && !window.ShadowDOMPolyfill; |
| 25 settings.useShadow = settings.wantShadow && settings.hasShadow; | 25 settings.useShadow = settings.wantShadow && settings.hasShadow; |
| 26 settings.hasNativeImports = Boolean('import' in document.createElement('link')); | 26 settings.hasNativeImports = Boolean('import' in document.createElement('link')); |
| 27 settings.useNativeImports = settings.hasNativeImports; | 27 settings.useNativeImports = settings.hasNativeImports; |
| 28 settings.useNativeCustomElements = !window.CustomElements || window.CustomElemen
ts.useNative; | 28 settings.useNativeCustomElements = !window.CustomElements || window.CustomElemen
ts.useNative; |
| 29 settings.useNativeShadow = settings.useShadow && settings.nativeShadow; | 29 settings.useNativeShadow = settings.useShadow && settings.nativeShadow; |
| 30 settings.usePolyfillProto = !settings.useNativeCustomElements && !Object.__proto
__; | 30 settings.usePolyfillProto = !settings.useNativeCustomElements && !Object.__proto
__; |
| 31 settings.hasNativeCSSProperties = !navigator.userAgent.match('AppleWebKit/601')
&& window.CSS && CSS.supports && CSS.supports('box-shadow', '0 0 0 var(--foo)'); |
| 32 settings.useNativeCSSProperties = settings.hasNativeCSSProperties && settings.la
zyRegister && settings.useNativeCSSProperties; |
| 31 return settings; | 33 return settings; |
| 32 }() | 34 }() |
| 33 };(function () { | 35 };(function () { |
| 34 var userPolymer = window.Polymer; | 36 var userPolymer = window.Polymer; |
| 35 window.Polymer = function (prototype) { | 37 window.Polymer = function (prototype) { |
| 36 if (typeof prototype === 'function') { | 38 if (typeof prototype === 'function') { |
| 37 prototype = prototype.prototype; | 39 prototype = prototype.prototype; |
| 38 } | 40 } |
| 39 if (!prototype) { | 41 if (!prototype) { |
| 40 prototype = {}; | 42 prototype = {}; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 _afterNextRenderQueue: [], | 110 _afterNextRenderQueue: [], |
| 109 _waitingNextRender: false, | 111 _waitingNextRender: false, |
| 110 afterNextRender: function (element, fn, args) { | 112 afterNextRender: function (element, fn, args) { |
| 111 this._watchNextRender(); | 113 this._watchNextRender(); |
| 112 this._afterNextRenderQueue.push([ | 114 this._afterNextRenderQueue.push([ |
| 113 element, | 115 element, |
| 114 fn, | 116 fn, |
| 115 args | 117 args |
| 116 ]); | 118 ]); |
| 117 }, | 119 }, |
| 120 hasRendered: function () { |
| 121 return this._ready; |
| 122 }, |
| 118 _watchNextRender: function () { | 123 _watchNextRender: function () { |
| 119 if (!this._waitingNextRender) { | 124 if (!this._waitingNextRender) { |
| 120 this._waitingNextRender = true; | 125 this._waitingNextRender = true; |
| 121 var fn = function () { | 126 var fn = function () { |
| 122 Polymer.RenderStatus._flushNextRender(); | 127 Polymer.RenderStatus._flushNextRender(); |
| 123 }; | 128 }; |
| 124 if (!this._ready) { | 129 if (!this._ready) { |
| 125 this.whenReady(fn); | 130 this.whenReady(fn); |
| 126 } else { | 131 } else { |
| 127 requestAnimationFrame(fn); | 132 requestAnimationFrame(fn); |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 try { | 664 try { |
| 660 return JSON.stringify(value); | 665 return JSON.stringify(value); |
| 661 } catch (x) { | 666 } catch (x) { |
| 662 return ''; | 667 return ''; |
| 663 } | 668 } |
| 664 } | 669 } |
| 665 default: | 670 default: |
| 666 return value != null ? value : undefined; | 671 return value != null ? value : undefined; |
| 667 } | 672 } |
| 668 } | 673 } |
| 669 });Polymer.version = "1.5.0";Polymer.Base._addFeature({ | 674 });Polymer.version = '1.6.0';Polymer.Base._addFeature({ |
| 670 _registerFeatures: function () { | 675 _registerFeatures: function () { |
| 671 this._prepIs(); | 676 this._prepIs(); |
| 672 this._prepBehaviors(); | 677 this._prepBehaviors(); |
| 673 this._prepConstructor(); | 678 this._prepConstructor(); |
| 674 this._prepPropertyInfo(); | 679 this._prepPropertyInfo(); |
| 675 }, | 680 }, |
| 676 _prepBehavior: function (b) { | 681 _prepBehavior: function (b) { |
| 677 this._addHostAttributes(b.hostAttributes); | 682 this._addHostAttributes(b.hostAttributes); |
| 678 }, | 683 }, |
| 679 _marshalBehavior: function (b) { | 684 _marshalBehavior: function (b) { |
| 680 }, | 685 }, |
| 681 _initFeatures: function () { | 686 _initFeatures: function () { |
| 682 this._marshalHostAttributes(); | 687 this._marshalHostAttributes(); |
| 683 this._marshalBehaviors(); | 688 this._marshalBehaviors(); |
| 684 } | 689 } |
| 685 }); | 690 }); |
| OLD | NEW |