Hi,

I have run into a similar problem. The problem is something with the
"require" and namespaces in JavaScript. The following worked for me:

(ns example.example
(:require [goog.fx.Dragger :as unused-alias]))

And then to call the Dragger constructor:
(goog.fx.Dragger. <element>)

In the twitterbuzz example in the clojurescript source there is a
similar case with goog.net.Jsonp.:
(ns twitterbuzz.core
(:require ....
[goog.net.Jsonp :as jsonp] ;; the alias jsonp is never used
...))

And later in the code:
(goog.net.Jsonp. twitter-uri)

from twitterbuzz/corecljs at
https://github.com/clojure/clojurescript/blob/master/samples/twitterbuzz/src/twitterbuzz/core.cljs

This seems to be a rough edge around the namespace support in
ClojureScript.

-- 
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

Reply via email to