Skip to content

Commit

Permalink
allow selection in templates PolymerElements#47
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAntix committed Sep 3, 2015
1 parent dddccfb commit 9d53541
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iron-selectable.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@
* @type Array
*/
get items() {
var nodes = Polymer.dom(this).queryDistributedElements(this.selectable || '*');
return Array.prototype.filter.call(nodes, this._bindFilterItem);
var nodes = this.selectable
? Polymer.dom(this).querySelectorAll(this.selectable)
: Polymer.dom(this).queryDistributedElements('*');
return Array.prototype.filter.call(nodes, this._bindFilterItem);
},

/**
Expand Down

0 comments on commit 9d53541

Please sign in to comment.