Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 21, 2014
1 parent 1a1f959 commit 529e328
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@
},

get items() {
if (!this.target) {
return [];
}
var nodes = this.target !== this ? (this.itemsSelector ?
this.target.querySelectorAll(this.itemsSelector) :
this.target.children) : this.$.items.getDistributedNodes();
Expand All @@ -257,10 +260,12 @@
if (old) {
this.removeListener(old);
this.observer.disconnect();
this.clearSelection();
}
if (this.target) {
this.addListener(this.target);
this.observer.observe(this.target, {childList: true});
this.updateSelected();
}
},

Expand Down

0 comments on commit 529e328

Please sign in to comment.