diff --git a/.gitignore b/.gitignore index 6050c1f..3403d0a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ public/test out dist **/.DS_Store +.nrepl-port diff --git a/src-squint/applied_science/js_interop.cljc b/src-squint/applied_science/js_interop.cljc index f5dd8e2..24794c7 100644 --- a/src-squint/applied_science/js_interop.cljc +++ b/src-squint/applied_science/js_interop.cljc @@ -18,8 +18,8 @@ (defmacro call-in [obj path & fs] `(.. ~obj ~@(map #(symbol (str "-" %)) path) ~@(map list fs))) -(defmacro call [obj f] - (list (symbol (str "." f)) obj)) +(defmacro call [obj f & args] + (list* (symbol (str "." (name f))) obj args)) (defmacro !set [obj k v] `(do (cljs.core/set! ~(list (symbol (str ".-" (name k))) obj) ~v)