mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
ec5a50ea20
commit
6744d8dbe8
20 changed files with 152 additions and 131 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.11",
|
||||
"version": "0.7.12",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -15,11 +15,11 @@
|
|||
],
|
||||
"license": "BSD",
|
||||
"ignore": [],
|
||||
"_release": "0.7.11",
|
||||
"_release": "0.7.12",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.7.11",
|
||||
"commit": "ce6321507de6161ec52b43f82a6c36eda614d750"
|
||||
"tag": "v0.7.12",
|
||||
"commit": "044234d00f966292390d02cbe88184861e673cc7"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||
"_target": "^0.7.2",
|
||||
|
|
|
@ -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
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(this);
|
||||
})(window);
|
||||
|
||||
window.CustomElements = window.CustomElements || {
|
||||
flags: {}
|
||||
|
@ -361,6 +361,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);
|
||||
|
||||
|
@ -669,7 +670,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;
|
||||
|
@ -865,7 +866,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() {
|
||||
|
@ -893,7 +894,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;
|
||||
|
@ -930,6 +931,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();
|
||||
|
@ -942,7 +946,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");
|
||||
|
@ -966,5 +970,4 @@ window.CustomElements.addModule(function(scope) {
|
|||
var loadEvent = window.HTMLImports && !window.HTMLImports.ready ? "HTMLImportsLoaded" : "DOMContentLoaded";
|
||||
window.addEventListener(loadEvent, bootstrap);
|
||||
}
|
||||
scope.isIE11OrOlder = isIE11OrOlder;
|
||||
})(window.CustomElements);
|
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(this);
|
||||
})(window);
|
||||
|
||||
window.HTMLImports = window.HTMLImports || {
|
||||
flags: {}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,4 +341,4 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(this);
|
||||
})(window);
|
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -1745,8 +1745,8 @@ window.ShadowDOMPolyfill = {};
|
|||
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) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.11",
|
||||
"version": "0.7.12",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webcomponents.js",
|
||||
"version": "0.7.11",
|
||||
"version": "0.7.12",
|
||||
"description": "webcomponents.js",
|
||||
"main": "webcomponents.js",
|
||||
"directories": {
|
||||
|
|
|
@ -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) {
|
||||
|
@ -909,7 +909,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(this);
|
||||
})(window);
|
||||
|
||||
window.HTMLImports = window.HTMLImports || {
|
||||
flags: {}
|
||||
|
@ -1675,6 +1675,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);
|
||||
|
||||
|
@ -1983,7 +1984,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;
|
||||
|
@ -2179,7 +2180,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() {
|
||||
|
@ -2207,7 +2208,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;
|
||||
|
@ -2244,6 +2245,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();
|
||||
|
@ -2256,7 +2260,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");
|
||||
|
@ -2280,7 +2284,6 @@ window.CustomElements.addModule(function(scope) {
|
|||
var loadEvent = window.HTMLImports && !window.HTMLImports.ready ? "HTMLImportsLoaded" : "DOMContentLoaded";
|
||||
window.addEventListener(loadEvent, bootstrap);
|
||||
}
|
||||
scope.isIE11OrOlder = isIE11OrOlder;
|
||||
})(window.CustomElements);
|
||||
|
||||
if (typeof HTMLTemplateElement === "undefined") {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue