diff --git a/lib/elements/array-selector.html b/lib/elements/array-selector.html index 6325cc91c3..9e7ea69ade 100644 --- a/lib/elements/array-selector.html +++ b/lib/elements/array-selector.html @@ -199,13 +199,13 @@ let sidx = 0; this.__selectedMap.forEach(idx => { if (idx >= 0) { - this.linkPaths(`${JSCompiler_renameProperty('items', this)}.` + idx, `${JSCompiler_renameProperty('selected', this)}.` + sidx++); + this.linkPaths(`${JSCompiler_renameProperty('items', this)}.${idx}`, `${JSCompiler_renameProperty('selected', this)}.${sidx++}`); } }); } else { this.__selectedMap.forEach(idx => { - this.linkPaths(JSCompiler_renameProperty('selected', this), `${JSCompiler_renameProperty('items', this)}.` + idx); - this.linkPaths(JSCompiler_renameProperty('selectedItem', this), `${JSCompiler_renameProperty('items', this)}.` + idx); + this.linkPaths(JSCompiler_renameProperty('selected', this), `${JSCompiler_renameProperty('items', this)}.${idx}`); + this.linkPaths(JSCompiler_renameProperty('selectedItem', this), `${JSCompiler_renameProperty('items', this)}.${idx}`); }); } } @@ -260,7 +260,7 @@ } __selectedIndexForItemIndex(idx) { - let selected = this.__dataLinkedPaths[`${JSCompiler_renameProperty('items', this)}.` + idx]; + let selected = this.__dataLinkedPaths[`${JSCompiler_renameProperty('items', this)}.${idx}`]; if (selected) { return parseInt(selected.slice(`${JSCompiler_renameProperty('selected', this)}.`.length), 10); }