Browse Source

enhance(undo): add keyword def for :gen-undo-op?

rcmerci 1 year ago
parent
commit
662ebd2503
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/main/frontend/worker/undo_redo.cljs

+ 3 - 0
src/main/frontend/worker/undo_redo.cljs

@@ -10,6 +10,9 @@
             [malli.core :as m]
             [malli.core :as m]
             [malli.util :as mu]))
             [malli.util :as mu]))
 
 
+(sr/defkeyword :gen-undo-op?
+  "tx-meta option, generate undo ops from tx-data when true (default true)")
+
 (sr/defkeyword ::boundary
 (sr/defkeyword ::boundary
   "boundary of one or more undo-ops.
   "boundary of one or more undo-ops.
 when one undo/redo will operate on all ops between two ::boundary")
 when one undo/redo will operate on all ops between two ::boundary")