This will nonetheless be fixed in Prototype 1.6 -- Event.observe will
automatically "fix" scope.

Cheers,
Andrew

On Jul 13, 12:42 am, Paladin <[EMAIL PROTECTED]> wrote:
> Thanks. Sometimes when bugs pop out it's really difficult to tell
> where they come from.=)
>
> On Jul 12, 4:46 pm, jdalton <[EMAIL PROTECTED]> wrote:
>
> > This is JavaScript issue and not a Prototype issue.
>
> >http://www.prototypejs.org/api/event/observe
> > Read the section titled "The tricky case of methods that need this"
>
> > Event.observe("button", "click", this.showColor.bind(this)); //should
> > work


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to