Skip to content

Commit

Permalink
check this.selected
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Nov 14, 2014
1 parent 0a2fd4c commit 21c8942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/x-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

selectedChanged: function(selected, old) {
this.index = this.items.indexOf(this.selected);
this.selectedId = this.selected.id;
this.selectedId = this.selected && this.selected.id;
this.attributeFollows('selected', selected, old);
},

Expand Down

0 comments on commit 21c8942

Please sign in to comment.