update polymer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user