1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update polymer

This commit is contained in:
Luke Pulverenti 2015-08-20 23:27:11 -04:00
parent ec5a50ea20
commit 6744d8dbe8
20 changed files with 152 additions and 131 deletions

View file

@ -7,7 +7,7 @@
* 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
*/
// @version 0.7.11
// @version 0.7.12
window.WebComponents = window.WebComponents || {};
(function(scope) {
@ -1781,8 +1781,8 @@ if (WebComponents.flags.shadow) {
var originalInsertBefore = OriginalNode.prototype.insertBefore;
var originalRemoveChild = OriginalNode.prototype.removeChild;
var originalReplaceChild = OriginalNode.prototype.replaceChild;
var isIe = /Trident|Edge/.test(navigator.userAgent);
var removeChildOriginalHelper = isIe ? function(parent, child) {
var isIEOrEdge = /Trident|Edge/.test(navigator.userAgent);
var removeChildOriginalHelper = isIEOrEdge ? function(parent, child) {
try {
originalRemoveChild.call(parent, child);
} catch (ex) {
@ -5678,7 +5678,7 @@ if (WebComponents.flags.shadow) {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(this);
})(window);
window.HTMLImports = window.HTMLImports || {
flags: {}
@ -6444,6 +6444,7 @@ window.CustomElements = window.CustomElements || {
scope.addModule = addModule;
scope.initializeModules = initializeModules;
scope.hasNative = Boolean(document.registerElement);
scope.isIE = /Trident/.test(navigator.userAgent);
scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || window.HTMLImports.useNative);
})(window.CustomElements);
@ -6752,7 +6753,7 @@ window.CustomElements.addModule(function(scope) {
});
window.CustomElements.addModule(function(scope) {
var isIE11OrOlder = scope.isIE11OrOlder;
var isIE = scope.isIE;
var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeAll = scope.upgradeAll;
var upgradeWithDefinition = scope.upgradeWithDefinition;
@ -6948,7 +6949,7 @@ window.CustomElements.addModule(function(scope) {
}
wrapDomMethodToForceUpgrade(Node.prototype, "cloneNode");
wrapDomMethodToForceUpgrade(document, "importNode");
if (isIE11OrOlder) {
if (isIE) {
(function() {
var importNode = document.importNode;
document.importNode = function() {
@ -6976,7 +6977,7 @@ window.CustomElements.addModule(function(scope) {
(function(scope) {
var useNative = scope.useNative;
var initializeModules = scope.initializeModules;
var isIE11OrOlder = /Trident/.test(navigator.userAgent);
var isIE = scope.isIE;
if (useNative) {
var nop = function() {};
scope.watchShadow = nop;
@ -7013,6 +7014,9 @@ window.CustomElements.addModule(function(scope) {
function bootstrap() {
upgradeDocumentTree(window.wrap(document));
window.CustomElements.ready = true;
var requestAnimationFrame = window.requestAnimationFrame || function(f) {
setTimeout(f, 16);
};
requestAnimationFrame(function() {
setTimeout(function() {
window.CustomElements.readyTime = Date.now();
@ -7025,7 +7029,7 @@ window.CustomElements.addModule(function(scope) {
});
});
}
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
if (isIE && typeof window.CustomEvent !== "function") {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");
@ -7049,7 +7053,6 @@ window.CustomElements.addModule(function(scope) {
var loadEvent = window.HTMLImports && !window.HTMLImports.ready ? "HTMLImportsLoaded" : "DOMContentLoaded";
window.addEventListener(loadEvent, bootstrap);
}
scope.isIE11OrOlder = isIE11OrOlder;
})(window.CustomElements);
(function(scope) {