Doug Kaye wrote: > What timing! The Porteneuve book arrived 30 minutes ago and had the > answer. FYI, here's the observe(0) call that did the trick: > > > this.control.closeLink.observe('click',this.close.bindAsEventListener(this,this)); > > 1. Use of bindAsEventListener() > > 2. Passing 'this' as its second argument. > And you don't even need to pass this as the second parameter. You can already access the object using the "this" keyword inside the close function. Even simpler.
- Ken --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---