Merge pull request #3395 from BeksOmega/fixes/EqualsDynamicChecks

Fixed logic_compare type checks for disposed blocks
This commit is contained in:
Rachel Fenichel
2019-11-07 15:10:47 -08:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -842,6 +842,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.