Skip to content

Commit

Permalink
Merge pull request #1841 from Polymer/array-selector
Browse files Browse the repository at this point in the history
Fix incorrect test for `toggle`. Fixes #1810.
  • Loading branch information
kevinpschaaf committed Jun 12, 2015
2 parents 2998445 + eb4916b commit 44e807c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/template/array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@
var scol = Polymer.Collection.get(this.selected);
var skey = scol.getKey(item);
if (skey >= 0) {
this.deselect(item);
} else if (this.toggle) {
if (this.toggle) {
this.deselect(item);
}
} else {
this.push('selected', item);
// this.linkPaths('selected.' + sidx, 'items.' + skey);
// skey = Polymer.Collection.get(this.selected).add(item);
Expand Down

0 comments on commit 44e807c

Please sign in to comment.