mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-20 18:09:43 -04:00
Store a single global insertion marker instead on one per block
This commit is contained in:
parent
002e470ccd
commit
3a07be9b5c
3 changed files with 34 additions and 30 deletions
core
|
@ -100,8 +100,6 @@ Blockly.Block = function(workspace, prototypeName, opt_id) {
|
|||
/** @type {boolean} */
|
||||
this.RTL = workspace.RTL;
|
||||
|
||||
/** @type {Blockly.Block} */
|
||||
this.insertionMarker_ = null;
|
||||
/** @type {boolean} */
|
||||
this.isInsertionMarker_ = false;
|
||||
|
||||
|
@ -208,10 +206,6 @@ Blockly.Block.prototype.dispose = function(healStack) {
|
|||
Blockly.selected = null;
|
||||
}
|
||||
|
||||
if (this.insertionMarker_) {
|
||||
this.insertionMarker_.dispose();
|
||||
}
|
||||
|
||||
// First, dispose of all my children.
|
||||
for (var i = this.childBlocks_.length - 1; i >= 0; i--) {
|
||||
this.childBlocks_[i].dispose(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue