.getTime is a method which takes no arguments. In JavaScript (and by
extension ClojureScript) instance methods are also properties.
So in your case, (.getTime (js/Date.)) actually returns the value of
the method (the native code) instead of calling it.
If you wish to call .getTime instead, you'll have to invoke it thusly
- (. (js/Date.) (getTime))
Also note that this problem has been fixed in a very recent commit
with the introduction of a new property lookup syntax -
http://dev.clojure.org/display/design/Unified+ClojureScript+and+Clojure+field+access+syntax
Hope this helps.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com