Update the registered component ids (#4898)

This commit is contained in:
Monica Kozbial
2021-06-17 17:50:04 -07:00
committed by GitHub
parent 245a44b030
commit 7b286dbf82
5 changed files with 13 additions and 8 deletions

View File

@@ -72,7 +72,8 @@ Blockly.Flyout = function(workspaceOptions) {
this.workspace_.setVisible(this.isVisible_);
/**
* The unique id for this component.
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
this.id = Blockly.utils.genUid();

View File

@@ -23,7 +23,8 @@ goog.provide('Blockly.IComponent');
Blockly.IComponent = function() {};
/**
* The unique id for this component.
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
Blockly.IComponent.id;

View File

@@ -67,10 +67,11 @@ Blockly.Toolbox = function(workspace) {
this.workspace_ = workspace;
/**
* The unique id for this component.
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
this.id = Blockly.utils.genUid();
this.id = 'toolbox';
/**
* The JSON describing the contents of this toolbox.

View File

@@ -57,10 +57,11 @@ Blockly.Trashcan = function(workspace) {
this.workspace_ = workspace;
/**
* The unique id for this component.
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
this.id = Blockly.utils.genUid();
this.id = 'trashcan';
/**
* A list of XML (stored as strings) representing blocks in the trashcan.

View File

@@ -45,10 +45,11 @@ Blockly.ZoomControls = function(workspace) {
this.workspace_ = workspace;
/**
* The unique id for this component.
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
this.id = Blockly.utils.genUid();
this.id = 'zoomControls';
/**
* A handle to use to unbind the mouse down event handler for zoom reset