Fix getDestinationInsertionPoints so that it uses wrap

This commit is contained in:
Steven Orvell
2019-01-31 16:21:24 -08:00
parent f8bea91a54
commit 10ff12de33
+2 -2
View File
@@ -134,10 +134,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
*/
getDestinationInsertionPoints() {
let ip$ = [];
let n = this.node.assignedSlot;
let n = Polymer.wrap(this.node).assignedSlot;
while (n) {
ip$.push(n);
n = n.assignedSlot;
n = Polymer.wrap(n).assignedSlot;
}
return ip$;
}