Refactor validators to survive aggressive Closure compression.

This commit is contained in:
Neil Fraser 2016-07-15 20:59:20 -07:00
commit 5c2c4d8400
5 changed files with 28 additions and 27 deletions

View file

@ -75,9 +75,8 @@ Blockly.FieldNumber.prototype.setConstraints = function(min, max, precision) {
* Ensure that only a number in the correct range may be entered.
* @param {string} text The user's text.
* @return {?string} A string representing a valid number, or null if invalid.
* @this {!Blockly.FieldNumber}
*/
Blockly.FieldNumber.classValidator = function(text) {
Blockly.FieldNumber.prototype.classValidator = function(text) {
if (text === null) {
return null;
}