mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Block factory fix (#4327)
This commit is contained in:
@@ -398,7 +398,7 @@ WorkspaceFactoryController.prototype.updatePreview = function() {
|
||||
// Only update the toolbox if not in read only mode.
|
||||
if (!this.model.options['readOnly']) {
|
||||
// Get toolbox XML.
|
||||
var tree = Blockly.Options.parseToolboxTree(
|
||||
var tree = Blockly.utils.toolbox.parseToolboxTree(
|
||||
this.generator.generateToolboxXml());
|
||||
|
||||
// No categories, creates a simple flyout.
|
||||
@@ -1084,7 +1084,7 @@ WorkspaceFactoryController.prototype.setStandardOptionsAndUpdate = function() {
|
||||
WorkspaceFactoryController.prototype.generateNewOptions = function() {
|
||||
this.model.setOptions(this.readOptions_());
|
||||
|
||||
this.reinjectPreview(Blockly.Options.parseToolboxTree(
|
||||
this.reinjectPreview(Blockly.utils.toolbox.parseToolboxTree(
|
||||
this.generator.generateToolboxXml()));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user