Remove type hint and add assertion

This commit is contained in:
oakes
2014-01-24 22:15:15 -05:00
parent d11b0daf05
commit 384fb39a37

View File

@@ -55,7 +55,8 @@
(:object arg)
(NinePatch. (:object arg))
(map? arg)
(let [{:keys [^TextureRegion region left right top bottom]} arg]
(let [{:keys [region left right top bottom]} arg]
(assert (and region left right top bottom))
(NinePatch. region left right top bottom))
:else
arg)))