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
|
(-run-next-tick
|
||||||
[this]
|
[this]
|
||||||
|
|
||||||
(-exception
|
|
||||||
[_ ex]
|
|
||||||
(set! queue #queue []) ;; purge the queue
|
|
||||||
(throw ex))
|
|
||||||
(goog.async.nextTick #(-fsm-trigger this :run-queue nil)))
|
(goog.async.nextTick #(-fsm-trigger this :run-queue nil)))
|
||||||
|
|
||||||
;; Process all the events currently in the queue, but not any new ones.
|
;; Process all the events currently in the queue, but not any new ones.
|
||||||
|
@ -120,6 +115,11 @@
|
||||||
(do (-process-1st-event this)
|
(do (-process-1st-event this)
|
||||||
(recur (dec n)))))))
|
(recur (dec n)))))))
|
||||||
|
|
||||||
|
(-exception
|
||||||
|
[_ ex]
|
||||||
|
(set! queue #queue []) ;; purge the queue
|
||||||
|
(throw ex))
|
||||||
|
|
||||||
(-pause
|
(-pause
|
||||||
[this later-fn]
|
[this later-fn]
|
||||||
(later-fn #(-fsm-trigger this :resume nil)))
|
(later-fn #(-fsm-trigger this :resume nil)))
|
||||||
|
|
Loading…
Reference in New Issue