a few minor comment mods
This commit is contained in:
parent
6751414320
commit
ffa676744d
|
@ -137,9 +137,10 @@
|
|||
(let [[new-state action-fn]
|
||||
(case [fsm-state trigger]
|
||||
|
||||
; Here is the FSM
|
||||
;[current-state :trigger] [:new-state action-fn]
|
||||
;; Here is the FSM
|
||||
;; [current-state trigger] [new-state action-fn]
|
||||
|
||||
;; the queue is idle
|
||||
[:quiescent :add-event] [:scheduled #(do (-add-event this arg)
|
||||
(-run-next-tick this))]
|
||||
|
||||
|
@ -159,7 +160,7 @@
|
|||
[:paused :add-event ] [:paused #(-add-event this arg)]
|
||||
[:paused :begin-resume] [:resuming #(-begin-resume this)]
|
||||
|
||||
;; processing an event which previously caused the queue to be paused
|
||||
;; processing the event that caused the queue to be paused
|
||||
[:resuming :add-event ] [:resuming #(-add-event this arg)]
|
||||
[:resuming :exception ] [:quiescent #(-exception this arg)]
|
||||
[:resuming :finish-resume] [:running #(-run-queue this)]
|
||||
|
@ -191,7 +192,7 @@
|
|||
"
|
||||
[event-v]
|
||||
(if (nil? event-v)
|
||||
(error "re-frame: \"dispatch\" is ignoring a nil event.") ;; nil would close the channel
|
||||
(error "re-frame: \"dispatch\" is ignoring a nil event.")
|
||||
(enqueue event-queue event-v))
|
||||
nil) ;; Ensure nil return. See https://github.com/Day8/re-frame/wiki/Beware-Returning-False
|
||||
|
||||
|
|
Loading…
Reference in New Issue