Key(item);
if (this.multi) {
var scol = Polymer.Collection.get(this.selected);
var skey = scol.getKey(item);
if (skey >= 0) {
this.deselect(item);
} else if (this.toggle) {
this.push("selected", item);
this.async(function() {
skey = scol.getKey(item);
this.linkPaths("selected." + skey, "items." + key);
});
}
} else {
if (this.toggle && item == this.selected) {
this.deselect();
} else {
this.linkPaths("selected", "items." + key);
this.selected = item;
}
}
}
});

Polymer({
is: "dom-if",
"extends": "template",