Skip to content

Commit

Permalink
Implement ajaxorg#1452
Browse files Browse the repository at this point in the history
  • Loading branch information
NotLazy committed Jul 4, 2023
1 parent a6c8bf3 commit 3d37d5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/undomanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,16 @@ class UndoManager {
}

toJSON() {

return {
$redoStack: this.$redoStack,
$undoStack: this.$undoStack,
};
}

fromJSON() {

this.reset();
this.$undoStack = json.$undoStack;
this.$redoStack = json.$redoStack;
}


Expand Down

0 comments on commit 3d37d5c

Please sign in to comment.