Re: ClojureScript binding problem

2011-08-01 Thread Brian McKenna
For anyone else with the same problem, I just found the nice way to do it: (def iframe (. field (getEditableIframe))) Much better! Thanks, Brian McKenna -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: ClojureScript binding problem

2011-08-01 Thread Dmitry Gutov
On Aug 1, 1:32 pm, Brian McKenna puffnfr...@gmail.com wrote: For anyone else with the same problem, I just found the nice way to do it:     (def iframe (. field (getEditableIframe))) This should be equivalent to (def iframe (.getEditableIframe field)) which is the usual way to do method calls

Re: ClojureScript binding problem

2011-08-01 Thread Chouser
On Mon, Aug 1, 2011 at 8:54 AM, Dmitry Gutov raa...@gmail.com wrote: On Aug 1, 1:32 pm, Brian McKenna puffnfr...@gmail.com wrote: For anyone else with the same problem, I just found the nice way to do it:     (def iframe (. field (getEditableIframe))) This should be equivalent to (def iframe

Re: ClojureScript binding problem

2011-08-01 Thread Dmitry Gutov
Oh, thanks for the explanation. I looked at the twitterbuzz code before replying, saw the function calls with arguments written the usual way, and (erroneously) decided it would be the same for the zero-arity calls. But it's there in the wiki. On Aug 1, 5:17 pm, Chouser chou...@gmail.com wrote:

ClojureScript binding problem

2011-07-30 Thread Brian McKenna
In JavaScript, the `this` identifier gets bound when a function is called. Determining what to bind is from either: * Looking up the object that the function was called from * An explicit parameter in these functions: * `Function.prototype.apply` * `Function.prototype.call` So the following