Hi,

The solution is to explicitly require goog.fx.DragDrop in the :require
in the ns declaration:

[goog.fx.DragDrop :as dd-import]

This adds this line in the generated js output:
goog.require('goog.fx.DragDrop');

This line is required because DragDrop lives in its own file within
the Google Closure Library.

Also, your second example with the let form doesn't succeed. Try
calling the "run-draganddrop" function and it will gave the same error
as the failing def case. Using the "let" here makes that the
expression is never reached and executed because the function is never
called, which is why the error does not show. This case is also solved
by adding the DragDrop to require.

-Gijs

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