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
15b68f5f4b
commit
2ffd85b8d0
14 changed files with 150 additions and 36 deletions
|
@ -395,6 +395,17 @@ DomApi.prototype = {
|
|||
flush: function () {
|
||||
Polymer.dom.flush();
|
||||
},
|
||||
deepContains: function (node) {
|
||||
if (this.node.contains(node)) {
|
||||
return true;
|
||||
}
|
||||
var n = node;
|
||||
var wrappedDocument = wrap(document);
|
||||
while (n && n !== wrappedDocument && n !== this.node) {
|
||||
n = Polymer.dom(n).parentNode || n.host;
|
||||
}
|
||||
return n === this.node;
|
||||
},
|
||||
_lazyDistribute: function (host) {
|
||||
if (host.shadyRoot && host.shadyRoot._distributionClean) {
|
||||
host.shadyRoot._distributionClean = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue