I'm trying to instantiate a new goog.fx/Animate object, but the
constructor doesn't return anything:

  (:require [goog.fx :as fx])
  (let [anim (fx/Animation (array 22 33) (array 44 55) 1000 nil)]
    "anim:>" #<undefined> "<end anim"
    ...

fx/Animation executes but afterward my code logs:
     "anim:>" #<undefined> "<end anim"

It appears I don't understand how to instantiate an object. I need the
'anim' reference to use later to set up listeners and play the
animation.  Isn't a constructor supposed to return something? What am
I doing wrong?

Info: as I debug/step through fx/Animate I see that the 'this'
variable refers to the current DOMWindow, which also has 200 other
unrelated variables in it. This doesn't make sense, I expected it to
return a new instance of an fxAnimation object, but it doesn't return
anything.

Am I instantiating improperly?

Thanks.

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