mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Simplify: universal Action predicates instead of action-specific guards.
This commit is contained in:
parent
bb96f322c6
commit
1d3652a96c
6 changed files with 83 additions and 159 deletions
|
@ -480,7 +480,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||
});
|
||||
this.history = new History();
|
||||
this.actionManager.registerAll(actions);
|
||||
this.actionManager.registerActionGuards();
|
||||
|
||||
this.actionManager.registerAction(createUndoAction(this.history));
|
||||
this.actionManager.registerAction(createRedoAction(this.history));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue