remove context log
This commit is contained in:
@@ -20,18 +20,9 @@ export default class CoreViewModel {
|
|||||||
get context(): Context | undefined {
|
get context(): Context | undefined {
|
||||||
return this.contexts.pop();
|
return this.contexts.pop();
|
||||||
}
|
}
|
||||||
logContexts = (): void => {
|
|
||||||
console.log(
|
|
||||||
"context",
|
|
||||||
this.contexts.map(
|
|
||||||
(x) => x.contextDebugDescription + "-" + x.contextId,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
};
|
|
||||||
set context(context: Context) {
|
set context(context: Context) {
|
||||||
if (this.contextStack.has(context.contextId)) return;
|
if (this.contextStack.has(context.contextId)) return;
|
||||||
this.contextStack.set(context.contextId, context);
|
this.contextStack.set(context.contextId, context);
|
||||||
this.logContexts();
|
|
||||||
}
|
}
|
||||||
closeContext = (contextId: string): void => {
|
closeContext = (contextId: string): void => {
|
||||||
if (
|
if (
|
||||||
@@ -45,7 +36,6 @@ export default class CoreViewModel {
|
|||||||
this.contextStack.delete(currentContext.contextId);
|
this.contextStack.delete(currentContext.contextId);
|
||||||
if (currentContext.contextId == contextId) break;
|
if (currentContext.contextId == contextId) break;
|
||||||
}
|
}
|
||||||
this.logContexts();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
handleKeyDown = (e: KeyboardEvent): void => {
|
handleKeyDown = (e: KeyboardEvent): void => {
|
||||||
|
|||||||
Reference in New Issue
Block a user