mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
fix: disposing of a workspace that has overwritten shadows (#6424)
* fix: disposing of a workspace that has overwritten shadows * fix: try slightly different placement to fix tests * fix: add disposing parameter to guaruntee consistent behavior * chore: wrap properties in a isDeadOrDying method * chore: make disposing private
This commit is contained in:
@@ -571,7 +571,7 @@ export class Connection implements IASTNodeLocationWithBlock {
|
||||
const parentBlock = this.getSourceBlock();
|
||||
const shadowState = this.getShadowState();
|
||||
const shadowDom = this.getShadowDom();
|
||||
if (parentBlock.disposed || !shadowState && !shadowDom) {
|
||||
if (parentBlock.isDeadOrDying() || !shadowState && !shadowDom) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user