mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Fix lastMarker_ disposal (#4184)
This commit is contained in:
@@ -306,6 +306,14 @@ Blockly.InsertionMarkerManager.prototype.initAvailableConnections_ = function()
|
||||
if (lastOnStack && lastOnStack != this.topBlock_.nextConnection) {
|
||||
available.push(lastOnStack);
|
||||
this.lastOnStack_ = lastOnStack;
|
||||
if (this.lastMarker_) {
|
||||
Blockly.Events.disable();
|
||||
try {
|
||||
this.lastMarker_.dispose();
|
||||
} finally {
|
||||
Blockly.Events.enable();
|
||||
}
|
||||
}
|
||||
this.lastMarker_ = this.createMarkerBlock_(lastOnStack.getSourceBlock());
|
||||
}
|
||||
return available;
|
||||
|
||||
Reference in New Issue
Block a user