Skip to content

Commit b4b0b3f

Browse files
committed
Conveying this to delegate fns. Refs. CLJS-40
1 parent 5b32f81 commit b4b0b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj/cljs/compiler.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ goog.require = function(rule){Packages.clojure.lang.RT[\"var\"](\"cljs.compiler\
341341
(print arglist)
342342
(dotimes [_ (- (count params) 2)] (print ")"))
343343
(println ");")
344-
(println (str "return " delegate-name ".call(" (string/join ", " (cons "null" params)) ");")))
344+
(println (str "return " delegate-name ".call(" (string/join ", " (cons "this" params)) ");")))
345345
(do
346346
(print (str "var " (last params) " = "))
347347
(print "cljs.core.seq(" arglist ");")
348348
(println ";")
349-
(println (str "return " delegate-name ".call(" (string/join ", " (cons "null" params)) ");"))))
349+
(println (str "return " delegate-name ".call(" (string/join ", " (cons "this" params)) ");"))))
350350
(print "})")))
351351

352352
(defn emit-fn-method

0 commit comments

Comments
 (0)