Skip to content

Commit

Permalink
Fix munging in export
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbloom authored and David Nolen committed Jun 4, 2012
1 parent a212624 commit 2371c1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clj/cljs/compiler.clj
Expand Up @@ -454,13 +454,13 @@
(defmethod emit :def
[{:keys [name init env doc export]}]
(if init
(do
(let [mname (munge name)]
(emit-comment doc (:jsdoc init))
(emits (munge name))
(emits mname)
(emits " = " init)
(when-not (= :expr (:context env)) (emitln ";"))
(when export
(emitln "goog.exportSymbol('" export "', " name ");")))
(emitln "goog.exportSymbol('" (munge export) "', " mname ");")))
(emitln "void 0;")))

(defn emit-apply-to
Expand Down

0 comments on commit 2371c1c

Please sign in to comment.