1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Switching variable name to make it more obvious value isn't being set directly.

This commit is contained in:
mike12345567 2022-08-04 12:56:08 +01:00
parent e440586156
commit 090493c959

View file

@ -70,17 +70,17 @@
// Adds a JS/HBS helper to the expression
const addHelper = (helper, js) => {
let value
let tempVal
const pos = getCaretPosition()
if (js) {
const decoded = decodeJSBinding(jsValue)
value = jsValue = encodeJSBinding(
tempVal = jsValue = encodeJSBinding(
addJSBinding(decoded, pos, helper.text, { helper: true })
)
} 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