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
64e22073e0
commit
3223d4672a
55 changed files with 359 additions and 253 deletions
|
@ -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.17
|
||||
// @version 0.7.18
|
||||
(function() {
|
||||
window.WebComponents = window.WebComponents || {
|
||||
flags: {}
|
||||
|
@ -920,9 +920,10 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
HTMLTemplateElement = function() {};
|
||||
HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype);
|
||||
HTMLTemplateElement.decorate = function(template) {
|
||||
if (!template.content) {
|
||||
template.content = contentDoc.createDocumentFragment();
|
||||
if (template.content) {
|
||||
return;
|
||||
}
|
||||
template.content = contentDoc.createDocumentFragment();
|
||||
var child;
|
||||
while (child = template.firstChild) {
|
||||
template.content.appendChild(child);
|
||||
|
@ -953,6 +954,7 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
canDecorate = false;
|
||||
}
|
||||
}
|
||||
HTMLTemplateElement.bootstrap(template.content);
|
||||
};
|
||||
HTMLTemplateElement.bootstrap = function(doc) {
|
||||
var templates = doc.querySelectorAll(TEMPLATE_TAG);
|
||||
|
@ -1039,7 +1041,8 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
Object.defineProperty(this, "defaultPrevented", {
|
||||
get: function() {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
configurable: true
|
||||
});
|
||||
};
|
||||
}
|
||||
|
@ -2057,17 +2060,11 @@ window.CustomElements.addModule(function(scope) {
|
|||
return root;
|
||||
};
|
||||
}
|
||||
function upgradeAll(doc) {
|
||||
if (HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
|
||||
HTMLTemplateElement.bootstrap(doc);
|
||||
}
|
||||
addedNode(doc);
|
||||
}
|
||||
scope.watchShadow = watchShadow;
|
||||
scope.upgradeDocumentTree = upgradeDocumentTree;
|
||||
scope.upgradeDocument = upgradeDocument;
|
||||
scope.upgradeSubtree = addedSubtree;
|
||||
scope.upgradeAll = upgradeAll;
|
||||
scope.upgradeAll = addedNode;
|
||||
scope.attached = attached;
|
||||
scope.takeRecords = takeRecords;
|
||||
});
|
||||
|
@ -2075,6 +2072,11 @@ window.CustomElements.addModule(function(scope) {
|
|||
window.CustomElements.addModule(function(scope) {
|
||||
var flags = scope.flags;
|
||||
function upgrade(node, isAttached) {
|
||||
if (node.localName === "template") {
|
||||
if (window.HTMLTemplateElement && HTMLTemplateElement.decorate) {
|
||||
HTMLTemplateElement.decorate(node);
|
||||
}
|
||||
}
|
||||
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
|
||||
var is = node.getAttribute("is");
|
||||
var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue