Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix broken NodeJS samples
Broken by CLJS-722 (b299a6b)
  • Loading branch information
jeffdik authored and swannodette committed Feb 20, 2014
1 parent 203d853 commit f6d743b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/nodehello.cljs
@@ -1,8 +1,10 @@
(ns nodehello) (ns nodehello
(:require [cljs.nodejs :as nodejs]))


(defn -main [& args] (defn -main [& args]
(println (apply str (map [\space "world" "hello"] [2 0 1])))) (println (apply str (map [\space "world" "hello"] [2 0 1]))))


(nodejs/enable-util-print!)
(set! *main-cli-fn* -main) (set! *main-cli-fn* -main)


(comment (comment
Expand Down
1 change: 1 addition & 0 deletions samples/nodels.cljs
Expand Up @@ -14,4 +14,5 @@
(defn -main [& paths] (defn -main [& paths]
(dorun (map println (mapcat file-seq paths)))) (dorun (map println (mapcat file-seq paths))))


(nodejs/enable-util-print!)
(set! *main-cli-fn* -main) (set! *main-cli-fn* -main)

0 comments on commit f6d743b

Please sign in to comment.