Pass metadata the wrapper function so it knows which screen function is running

This commit is contained in:
oakes
2014-05-17 23:26:21 -04:00
parent 24eeb208ea
commit aed7e8e57e

View File

@@ -68,8 +68,9 @@
(when func
(let [screen-map (merge @screen options)
old-entities @entities]
(some->> (fn []
(normalize (func screen-map old-entities)))
(some->> (with-meta
#(normalize (func screen-map old-entities))
(meta func))
(wrapper screen)
(reset-changed! entities old-entities)))))]
; add the input listeners to the screen atom