Switching variable name to make it more obvious value isn't being set directly.
This commit is contained in:
parent
b7f63aed03
commit
26c3f8a486
|
@ -70,17 +70,17 @@
|
||||||
|
|
||||||
// Adds a JS/HBS helper to the expression
|
// Adds a JS/HBS helper to the expression
|
||||||
const addHelper = (helper, js) => {
|
const addHelper = (helper, js) => {
|
||||||
let value
|
let tempVal
|
||||||
const pos = getCaretPosition()
|
const pos = getCaretPosition()
|
||||||
if (js) {
|
if (js) {
|
||||||
const decoded = decodeJSBinding(jsValue)
|
const decoded = decodeJSBinding(jsValue)
|
||||||
value = jsValue = encodeJSBinding(
|
tempVal = jsValue = encodeJSBinding(
|
||||||
addJSBinding(decoded, pos, helper.text, { helper: true })
|
addJSBinding(decoded, pos, helper.text, { helper: true })
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
value = hbsValue = addHBSBinding(hbsValue, pos, helper.text)
|
tempVal = hbsValue = addHBSBinding(hbsValue, pos, helper.text)
|
||||||
}
|
}
|
||||||
updateValue(value)
|
updateValue(tempVal)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds a data binding to the expression
|
// Adds a data binding to the expression
|
||||||
|
|
Loading…
Reference in New Issue