a few minor comment mods

This commit is contained in:
Stephen C. Gilardi 2015-11-04 09:01:56 -05:00
parent 6751414320
commit ffa676744d
1 changed files with 5 additions and 4 deletions

View File

@ -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