Fix angleValidator reference and lint @this (#515)

This commit is contained in:
Tim Mickel 2016-07-13 14:25:32 -04:00 committed by GitHub
parent e25456edb4
commit eb1ddddbb0

View file

@ -212,7 +212,7 @@ Blockly.FieldAngle.prototype.onMouseMove = function(e) {
angle = Math.round(angle / Blockly.FieldAngle.ROUND) *
Blockly.FieldAngle.ROUND;
}
angle = Blockly.FieldAngle.angleValidator(angle);
angle = Blockly.FieldAngle.classValidator(angle);
Blockly.FieldTextInput.htmlInput_.value = angle;
this.setValue(angle);
this.validate_();
@ -281,7 +281,6 @@ Blockly.FieldAngle.prototype.updateGraph_ = function() {
* Ensure that only an angle may be entered.
* @param {string} text The user's text.
* @return {?string} A string representing a valid angle, or null if invalid.
* @this {!Blockly.FieldAngle}
*/
Blockly.FieldAngle.classValidator = function(text) {
if (text === null) {