On Mon, Jun 11, 2012 at 1:37 PM, tomoj <t...@tomoj.la> wrote: > 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) > ... (goog.async.Deferred.), right? >
Yes. > So with :import, (:import goog.async.Deferred) ... (Deferred.)? I would > have expected (:import goog.async.Deferred.CancelledError) to cause trouble > here, but in this case at least, deferred.js also provides > goog.async.Deferred.CancelledError. I think the following should work: (:import goog.async.Deferred) (:import [goog.async Deferred ...]) Other thoughts? David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en