From 0e6daa703ccc2644b8c551e0e7ad6643bf9f9781 Mon Sep 17 00:00:00 2001 From: Chad Killingsworth Date: Wed, 30 Jan 2019 11:01:43 -0600 Subject: [PATCH] Avoid string concatentation to template strings --- lib/elements/array-selector.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }