Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no more goog.global namespace by default

  • Loading branch information...
commit c91b9c6a95bdab5843ea85bd581844d6493c32dc 1 parent 91be59b
@redinger redinger authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/clj/cljs/compiler.clj
View
3  src/clj/cljs/compiler.clj
@@ -86,8 +86,9 @@ goog.require = function(rule){Packages.clojure.lang.RT[\"var\"](\"cljs.compiler\
(defn js-var [sym]
(let [parts (string/split (name sym) #"\.")
+ first (first parts)
step (fn [part] (str "['" part "']"))]
- (apply str "goog.global" (map step parts))))
+ (apply str first (map step (rest parts)))))
(defn resolve-existing-var [env sym]
(if (= (namespace sym) "js")

0 comments on commit c91b9c6

Please sign in to comment.
Something went wrong with that request. Please try again.