mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-06 19:19:51 -04:00
block db doesn't belong in block.js
This commit is contained in:
parent
45f9b8af05
commit
ae745dac80
1 changed files with 0 additions and 15 deletions
|
@ -1334,21 +1334,6 @@ Blockly.Block.prototype.moveBy = function(dx, dy) {
|
|||
Blockly.Events.fire(event);
|
||||
};
|
||||
|
||||
/**
|
||||
* Database of all blocks.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Block.BlockDB_ = Object.create(null);
|
||||
|
||||
/**
|
||||
* Find the block with the specified ID.
|
||||
* @param {string} id ID of block to find.
|
||||
* @return {Blockly.Block} The sought after block or null if not found.
|
||||
*/
|
||||
Blockly.Block.getById = function(id) {
|
||||
return Blockly.Block.BlockDB_[id] || null;
|
||||
};
|
||||
|
||||
Blockly.Block.prototype.makeConnection = function(type) {
|
||||
return new Blockly.Connection(this, type);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue