Commit 6d8bae48 authored by Neil Fraser's avatar Neil Fraser

Fix 'this' in field change handler calls.

Caught by toebes.
parent 0274763b
......@@ -77,7 +77,7 @@ Blockly.FieldAngle.prototype.setChangeHandler = function(handler) {
} else {
wrappedHandler = Blockly.FieldAngle.angleValidator;
}
Blockly.FieldAngle.superClass_.setChangeHandler(wrappedHandler);
Blockly.FieldAngle.superClass_.setChangeHandler.call(this, wrappedHandler);
};
/**
......
......@@ -75,7 +75,7 @@ Blockly.FieldVariable.prototype.setChangeHandler = function(handler) {
} else {
wrappedHandler = Blockly.FieldVariable.dropdownChange;
}
Blockly.FieldVariable.superClass_.setChangeHandler(wrappedHandler);
Blockly.FieldVariable.superClass_.setChangeHandler.call(this, wrappedHandler);
};
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment