reorder to be the same as the order in the prototype
This commit is contained in:
parent
bde07088a4
commit
fc9fa490a6
|
@ -101,11 +101,6 @@
|
|||
|
||||
(-run-next-tick
|
||||
[this]
|
||||
|
||||
(-exception
|
||||
[_ ex]
|
||||
(set! queue #queue []) ;; purge the queue
|
||||
(throw ex))
|
||||
(goog.async.nextTick #(-fsm-trigger this :run-queue nil)))
|
||||
|
||||
;; Process all the events currently in the queue, but not any new ones.
|
||||
|
@ -120,6 +115,11 @@
|
|||
(do (-process-1st-event this)
|
||||
(recur (dec n)))))))
|
||||
|
||||
(-exception
|
||||
[_ ex]
|
||||
(set! queue #queue []) ;; purge the queue
|
||||
(throw ex))
|
||||
|
||||
(-pause
|
||||
[this later-fn]
|
||||
(later-fn #(-fsm-trigger this :resume nil)))
|
||||
|
|
Loading…
Reference in New Issue