mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Removed Class Option Check from Text Input fromJson (#2588)
* Removed class option check from text input fromJson, as text input fields don't accept a class. * Fixed syntax error.
This commit is contained in:
@@ -67,7 +67,7 @@ goog.inherits(Blockly.FieldTextInput, Blockly.Field);
|
||||
*/
|
||||
Blockly.FieldTextInput.fromJson = function(options) {
|
||||
var text = Blockly.utils.replaceMessageReferences(options['text']);
|
||||
var field = new Blockly.FieldTextInput(text, options['class']);
|
||||
var field = new Blockly.FieldTextInput(text);
|
||||
if (typeof options['spellcheck'] === 'boolean') {
|
||||
field.setSpellcheck(options['spellcheck']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user