Skip to content

Commit f12ce5d

Browse files
authored
Merge pull request #18 from formio/fix-this-binding
fix this binding in module-scoped variables
2 parents 17c5de5 + 32c2c98 commit f12ce5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ProtectedEvaluator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Utils as FormioUtils, DefaultEvaluator } from '@formio/js';
22
import Interpreter from '@formio/js-interpreter';
33

4-
const baseEvaluator = FormioUtils.Evaluator.evaluator;
5-
const baseEvaluate = FormioUtils.Evaluator.evaluate;
4+
const baseEvaluator = FormioUtils.Evaluator.evaluator.bind(FormioUtils.Evaluator);
5+
const baseEvaluate = FormioUtils.Evaluator.evaluate.bind(FormioUtils.Evaluator);
66

77
export interface IEvaluator {
88
noeval?: boolean;

0 commit comments

Comments
 (0)