Skip to content

Commit

Permalink
[#15]: preserving order of state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tolitius committed Nov 23, 2015
1 parent 4324968 commit 19ec27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mount/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
(sort-by :order))))

(defn- bring [states fun order]
(let [done (atom #{})]
(let [done (atom [])]
(->> states
(sort-by (comp :order meta) order)
(map #(fun % (meta %) done))
Expand Down

0 comments on commit 19ec27e

Please sign in to comment.