Skip to content

Commit

Permalink
Fix 'this' in field change handler calls.
Browse files Browse the repository at this point in the history
Caught by toebes.
  • Loading branch information
NeilFraser committed Aug 18, 2015
1 parent 0274763 commit 6d8bae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/field_angle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion core/field_variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down

0 comments on commit 6d8bae4

Please sign in to comment.