mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Update the registered component ids (#4898)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user