Simplify mount-count

This commit is contained in:
Dan Holmsand 2014-11-22 18:10:27 +01:00
parent 7d79637de6
commit 36c48c0ea2
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@
;;; Update batching
(defonce mount-count #js {:count 0})
(defonce mount-count 0)
(defn next-mount-count []
(.! mount-count :count (inc (.' mount-count :count))))
(set! mount-count (inc mount-count)))
(defn fake-raf [f]
(js/setTimeout f 16))