Pass metadata the wrapper function so it knows which screen function is running
This commit is contained in:
@@ -68,8 +68,9 @@
|
|||||||
(when func
|
(when func
|
||||||
(let [screen-map (merge @screen options)
|
(let [screen-map (merge @screen options)
|
||||||
old-entities @entities]
|
old-entities @entities]
|
||||||
(some->> (fn []
|
(some->> (with-meta
|
||||||
(normalize (func screen-map old-entities)))
|
#(normalize (func screen-map old-entities))
|
||||||
|
(meta func))
|
||||||
(wrapper screen)
|
(wrapper screen)
|
||||||
(reset-changed! entities old-entities)))))]
|
(reset-changed! entities old-entities)))))]
|
||||||
; add the input listeners to the screen atom
|
; add the input listeners to the screen atom
|
||||||
|
|||||||
Reference in New Issue
Block a user