Commits

Meikel Brandmeyer committed 197919e

def bundle to nil instead of just declaring

Fixes on unbound error for 1.2. Reported by Dave Ray.

  • Participants
  • Parent commits b496536

Comments (0)

Files changed (1)

src/main/clojure/j18n/core.clj

   ([bundle-name] `(defbundle ~bundle-name (munge (name (ns-name *ns*)))))
   ([bundle-name package]
    `(do
-      (declare ~bundle-name)
+      (def ~bundle-name nil)
       (alter-meta! *ns* assoc ::bundle (symbol (name (ns-name *ns*)) ~(name bundle-name)))
       (swap! @#'bundles assoc (var ~bundle-name) ~package)
       (var ~bundle-name))))