mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
add deprecation warning (#4356)
* add deprecation warning * fix indent and update deprecation date
This commit is contained in:
committed by
GitHub
parent
3f88a3f193
commit
a131794ef0
@@ -531,8 +531,11 @@ Blockly.FieldTextInput.prototype.resizeEditor_ = function() {
|
||||
* @deprecated
|
||||
*/
|
||||
Blockly.FieldTextInput.numberValidator = function(text) {
|
||||
console.warn('Blockly.FieldTextInput.numberValidator is deprecated. ' +
|
||||
'Use Blockly.FieldNumber instead.');
|
||||
Blockly.utils.deprecation.warn(
|
||||
'FieldTextInput.numberValidator',
|
||||
'May 2019',
|
||||
'December 2020',
|
||||
'Blockly.FieldNumber');
|
||||
if (text === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user