| OLD | NEW |
| 1 /** | 1 /** |
| 2 * @license | 2 * @license |
| 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
| 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
| 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
| 7 * Code distributed by Google as part of the polymer project is also | 7 * Code distributed by Google as part of the polymer project is also |
| 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
| 9 */ | 9 */ |
| 10 // @version 0.7.21 | 10 // @version 0.7.23 |
| 11 if (typeof WeakMap === "undefined") { | 11 if (typeof WeakMap === "undefined") { |
| 12 (function() { | 12 (function() { |
| 13 var defineProperty = Object.defineProperty; | 13 var defineProperty = Object.defineProperty; |
| 14 var counter = Date.now() % 1e9; | 14 var counter = Date.now() % 1e9; |
| 15 var WeakMap = function() { | 15 var WeakMap = function() { |
| 16 this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__"); | 16 this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__"); |
| 17 }; | 17 }; |
| 18 WeakMap.prototype = { | 18 WeakMap.prototype = { |
| 19 set: function(key, value) { | 19 set: function(key, value) { |
| 20 var entry = key[this.name]; | 20 var entry = key[this.name]; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 }; | 344 }; |
| 345 global.JsMutationObserver = JsMutationObserver; | 345 global.JsMutationObserver = JsMutationObserver; |
| 346 if (!global.MutationObserver) { | 346 if (!global.MutationObserver) { |
| 347 global.MutationObserver = JsMutationObserver; | 347 global.MutationObserver = JsMutationObserver; |
| 348 JsMutationObserver._isPolyfilled = true; | 348 JsMutationObserver._isPolyfilled = true; |
| 349 } | 349 } |
| 350 })(self); | 350 })(self); |
| 351 | 351 |
| 352 (function(scope) { | 352 (function(scope) { |
| 353 "use strict"; | 353 "use strict"; |
| 354 if (!window.performance) { | 354 if (!(window.performance && window.performance.now)) { |
| 355 var start = Date.now(); | 355 var start = Date.now(); |
| 356 window.performance = { | 356 window.performance = { |
| 357 now: function() { | 357 now: function() { |
| 358 return Date.now() - start; | 358 return Date.now() - start; |
| 359 } | 359 } |
| 360 }; | 360 }; |
| 361 } | 361 } |
| 362 if (!window.requestAnimationFrame) { | 362 if (!window.requestAnimationFrame) { |
| 363 window.requestAnimationFrame = function() { | 363 window.requestAnimationFrame = function() { |
| 364 var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAni
mationFrame; | 364 var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAni
mationFrame; |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 var rootDocument = scope.rootDocument; | 1148 var rootDocument = scope.rootDocument; |
| 1149 function bootstrap() { | 1149 function bootstrap() { |
| 1150 window.HTMLImports.importer.bootDocument(rootDocument); | 1150 window.HTMLImports.importer.bootDocument(rootDocument); |
| 1151 } | 1151 } |
| 1152 if (document.readyState === "complete" || document.readyState === "interactive
" && !window.attachEvent) { | 1152 if (document.readyState === "complete" || document.readyState === "interactive
" && !window.attachEvent) { |
| 1153 bootstrap(); | 1153 bootstrap(); |
| 1154 } else { | 1154 } else { |
| 1155 document.addEventListener("DOMContentLoaded", bootstrap); | 1155 document.addEventListener("DOMContentLoaded", bootstrap); |
| 1156 } | 1156 } |
| 1157 })(window.HTMLImports); | 1157 })(window.HTMLImports); |
| OLD | NEW |