vec states for watchers

This commit is contained in:
anatoly 2016-11-02 17:43:31 -04:00
parent a0f10407ee
commit 3218f8afaf

View file

@ -312,7 +312,8 @@
(add-watcher [_ ks state]
(doseq [k ks]
(swap! watchers update k #(conj % state))))
(swap! watchers update k (fn [v]
(-> (conj v state) vec)))))
(on-change [_ ks]
(doseq [k ks]