Skip to content

Commit

Permalink
remove origin from tracked origins when destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Feb 2, 2021
1 parent 15f2cf4 commit 51c8b2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/y-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export class CodemirrorBinding {
if (this.yUndoManager) {
this.yUndoManager.off('stack-item-added', this._onStackItemAdded)
this.yUndoManager.off('stack-item-popped', this._onStackItemPopped)
this.yUndoManager.trackedOrigins.delete(this)
}
this.type = null
this.cm = null
Expand Down

0 comments on commit 51c8b2b

Please sign in to comment.