mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Refactor validators to survive aggressive Closure compression.
This commit is contained in:
parent
8c48436c8f
commit
5c2c4d8400
5 changed files with 28 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue