Hello, This must be obvious (pun unintended) but I'm struggling to work out how to define a callback function in clojurescript which has a local "this" variable.
I see references to "gthis" in the compiler.clj but I'm unsure how to do define a function which uses it. Below is the javascript code snippet I'm attempting to translate into clojurescript. Thanks and apologies the the newby question. cheers, Oliver ==================== function started(e) { goog.style.setOpacity(this.target, 0.50); } function ended(e) { goog.style.setOpacity(this.target, 1); } goog.events.listen(window1, 'start', started); goog.events.listen(window1, 'end', ended); -- 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