reorder to be the same as the order in the prototype

This commit is contained in:
Stephen C. Gilardi 2015-11-06 23:01:55 -05:00
parent bde07088a4
commit fc9fa490a6
1 changed files with 5 additions and 5 deletions

View File

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