Skip to content

Commit 268e67f

Browse files
committed
AEDebugging_ Deregister closed codemirrors properly
SQUASHED: AUTO-COMMIT-src-client-reactive-active-expression-rewriting-active-expression-rewriting.js,AUTO-COMMIT-src-components-widgets-lively-code-mirror.js,
1 parent 61ef7fe commit 268e67f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/client/reactive/active-expression-rewriting/active-expression-rewriting.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ export class AEDebuggingCache {
347347
async updateDebggingViews() {
348348
for (let i = 0; i < this.registeredDebuggingViews.length; i++) {
349349
if (![...this.changedFiles].some(file => file.includes(this.registeredDebuggingViews[i].url))) continue;
350+
debugger;
350351
if (!(await this.registeredDebuggingViews[i].callback())) {
351352
this.registeredDebuggingViews.splice(i, 1);
352353
i--;

src/components/widgets/lively-code-mirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ export default class LivelyCodeMirror extends HTMLElement {
15921592
}
15931593

15941594
valid() {
1595-
return !!lively.query(this, "lively-container");
1595+
return lively.allParents(this, [], true).includes(document.body);
15961596
}
15971597

15981598
drawAExprGutter(line, dependencies, isAE) {

0 commit comments

Comments
 (0)