clj->extern
This commit is contained in:
parent
fd77e1ed45
commit
246e9e5e53
|
@ -241,14 +241,14 @@
|
|||
:cljs (.bind (o/get js/window str) js/window)
|
||||
))
|
||||
|
||||
(def clj {:name "clj"
|
||||
(def extern {:name "extern"
|
||||
::data/type ::data/clj
|
||||
:body (fn [& args]
|
||||
(println "Args passed: " args)
|
||||
;(println "Args passed: " args)
|
||||
(let [called (-> args first strpart readstr resolve-str)
|
||||
fn-args (rest args)]
|
||||
(println "Fn: " called)
|
||||
(println "Args: " (clj->js fn-args))
|
||||
;(println "Fn: " called)
|
||||
;(println "Args: " (clj->js fn-args))
|
||||
#?(
|
||||
:clj(apply called fn-args)
|
||||
:cljs (.apply called js/window (clj->js fn-args)))))})
|
||||
|
@ -281,7 +281,7 @@
|
|||
"conj" conj-
|
||||
"get" get-
|
||||
"type" type-
|
||||
"clj" clj
|
||||
"extern" extern
|
||||
"first" first-
|
||||
"rest" rest-
|
||||
"nth" nth-
|
||||
|
|
Loading…
Reference in New Issue
Block a user