Jay Miller wrote: > In the line: > x.mouseover = this.doHover.bindAsEventListener(this) > this doesn't refer to what you're thinking. It's inside the closure, which > changes the scope chain.
The value of a function's this keyword is not affected by, nor does it have any effect on, the scope chain. Its value is determined *only* by how the function is called. -- Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
