diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js index 23b164f..5056ed2 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js @@ -222,7 +222,7 @@ function evaluate(tokens, expr, values) { nstack.push(f.apply(undefined, args)); } else if(f.execute) { // Objects & expressions execution - nstack.push(f.execute.apply(undefined, args)); + nstack.push(f.execute.apply(f, args)); } else { throw new Error(f + ' cannot be executed'); }