mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Added checking if the block is disposed before trying to reconnect in logic_compare block.
This commit is contained in:
@@ -843,6 +843,14 @@ Blockly.Block.prototype.setEditable = function(editable) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns if this block has been disposed of / deleted.
|
||||
* @return {boolean} True if this block has been disposed of / deleted.
|
||||
*/
|
||||
Blockly.Block.prototype.isDisposed = function() {
|
||||
return this.disposed;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find the connection on this block that corresponds to the given connection
|
||||
* on the other block.
|
||||
|
||||
Reference in New Issue
Block a user