mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Fix 'this' in field change handler calls.
Caught by toebes.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user