fix: an error when I stop the recording process (#828)
canvas-manager.ts:35 Uncaught TypeError: this.resetObservers is not a function
This commit is contained in:
@@ -26,13 +26,13 @@ export class CanvasManager {
|
|||||||
private mirror: Mirror;
|
private mirror: Mirror;
|
||||||
|
|
||||||
private mutationCb: canvasMutationCallback;
|
private mutationCb: canvasMutationCallback;
|
||||||
private resetObservers: listenerHandler;
|
private resetObservers?: listenerHandler;
|
||||||
private frozen: boolean = false;
|
private frozen: boolean = false;
|
||||||
private locked: boolean = false;
|
private locked: boolean = false;
|
||||||
|
|
||||||
public reset() {
|
public reset() {
|
||||||
this.pendingCanvasMutations.clear();
|
this.pendingCanvasMutations.clear();
|
||||||
this.resetObservers();
|
this.resetObservers && this.resetObservers();
|
||||||
}
|
}
|
||||||
|
|
||||||
public freeze() {
|
public freeze() {
|
||||||
|
|||||||
Reference in New Issue
Block a user