Closed filodej closed 7 years ago
The following statement is probably not what was intended:
var jsElement=...; Xonomy.answer=function(val) { ... var jsElement=parameter.toJs(val, jsElement); }
The parameter.toJs() function is called with undefined as a second argument and not with jsElement closure as intended.
parameter.toJs()
undefined
jsElement
Inside the Xonomy.answer() function the jsElement is declared as a new variable and so the closure value is hidden in the whole function scope.
Xonomy.answer()
That was a silly bug, thanks for catching it.
The following statement is probably not what was intended:
The
parameter.toJs()
function is called withundefined
as a second argument and not withjsElement
closure as intended.Inside the
Xonomy.answer()
function thejsElement
is declared as a new variable and so the closure value is hidden in the whole function scope.