mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Refactored field utilities.
This commit is contained in:
@@ -533,7 +533,7 @@ CustomFields.FieldTurtle.prototype.fromXml = function(fieldElement) {
|
||||
|
||||
// Blockly needs to know the JSON name of this field. Usually this is
|
||||
// registered at the bottom of the field class.
|
||||
Blockly.Field.register('field_turtle', CustomFields.FieldTurtle);
|
||||
Blockly.utils.fields.register('field_turtle', CustomFields.FieldTurtle);
|
||||
|
||||
// Called by initView to create all of the SVGs. This is just used to keep
|
||||
// the code more organized.
|
||||
|
||||
Reference in New Issue
Block a user