diff --git a/demo/index.html b/demo/index.html index 2fa46b2..575447d 100644 --- a/demo/index.html +++ b/demo/index.html @@ -80,7 +80,25 @@

Example

+ +
+

Example

+
+ + +
Item 4
+
+
+
+ diff --git a/iron-selectable.html b/iron-selectable.html index d8ba693..eaccf49 100644 --- a/iron-selectable.html +++ b/iron-selectable.html @@ -99,7 +99,7 @@ }, /** - * The set of excluded elements where the key is the `localName` + * The set of excluded elements where the key is the `localName` * of the element that will be ignored from the item list. * * @type {object} @@ -147,7 +147,11 @@ * @type Array */ get items() { - var nodes = Polymer.dom(this).queryDistributedElements(this.selectable || '*'); + var nodes; + if (this.selectable) + nodes = this.querySelectorAll(this.selectable); + else + nodes = Polymer.dom(this).queryDistributedElements('*'); return Array.prototype.filter.call(nodes, this._bindFilterItem); }, diff --git a/iron-selector.html b/iron-selector.html index 92abe04..fe19a8a 100644 --- a/iron-selector.html +++ b/iron-selector.html @@ -10,7 +10,11 @@ - + + + diff --git a/test/content.html b/test/content.html index e869f98..6fdcfbb 100644 --- a/test/content.html +++ b/test/content.html @@ -49,16 +49,34 @@ + + diff --git a/test/template-repeat.html b/test/template-repeat.html index eae2729..8d0bdd4 100644 --- a/test/template-repeat.html +++ b/test/template-repeat.html @@ -92,7 +92,7 @@ test('set selected to something else', function(done) { setTimeout(function() { // set selected to something else - s.selected = 3; + s.set('selected', 3); // check selected item var item = s.selectedItem; assert.equal(s.items[3], item); @@ -107,4 +107,4 @@ - + \ No newline at end of file