Store a single global insertion marker instead on one per block

This commit is contained in:
rachel-fenichel 2016-04-06 14:57:16 -07:00
parent 002e470ccd
commit 3a07be9b5c
3 changed files with 34 additions and 30 deletions

View file

@ -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);