Re: Clojurescript - Javascript constructor and namespace with the same name problem

2012-06-11 Thread tomoj
This workaround doesn't work if the super-namespace doesn't exist. For example, "goog.async" is never provided, but "goog.async.Deferred" is provided (in the third-party bits of closure) and is itself the Deferred constructor. (:require [goog.ui :as ui]) similarly throws an error for me. Any o

Re: Clojurescript - Javascript constructor and namespace with the same name problem

2012-06-11 Thread tomoj
I noticed that it works fine to just do (:require [goog.async.Deferred :as d]) and to use (goog.async.Deferred.) to call the constructor (in this case Deferred is also used as a namespace, so require makes sense). With :require w/o :as support, you'd have (:require goog.async.Deferred) ... (goo