Permalink
Browse files

* src/clj/cljs/compiler.clj: remove unnecessary .call usage

  • Loading branch information...
1 parent 7b8f31e commit 5ad58eba76ca50e8e5c321c263301a18f2e9ea1a David Nolen committed May 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/clj/cljs/compiler.clj
@@ -485,12 +485,12 @@
(emits arglist)
(dotimes [_ (- (count params) 2)] (emits ")"))
(emitln ");")
- (emitln "return " delegate-name ".call(" (string/join ", " (cons "this" params)) ");"))
+ (emitln "return " delegate-name "(" (string/join ", " params) ");"))
(do
(emits "var " (last params) " = ")
(emits "cljs.core.seq(" arglist ");")
(emitln ";")
- (emitln "return " delegate-name ".call(" (string/join ", " (cons "this" params)) ");")))
+ (emitln "return " delegate-name "(" (string/join ", " params) ");")))
(emits "})")))
(defn emit-fn-method
@@ -587,7 +587,7 @@
(doseq [[n meth] ms]
(if (:variadic meth)
(do (emitln "default:")
- (emitln "return " n ".cljs$lang$arity$variadic.call(this,"
+ (emitln "return " n ".cljs$lang$arity$variadic("
(comma-sep (butlast maxparams))
(and (> (count maxparams) 1) ", ")
"cljs.core.array_seq(arguments, " max-fixed-arity "));"))

0 comments on commit 5ad58eb

Please sign in to comment.