sorry i dont understand what u mean :(
can u give me a litle example?
did you mean save  every
TMS.Event.ShowPopup.bindAsEventListener(element); on array?

On Jan 17, 10:23 pm, Ken Snyder <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > ...
> >            var act=TMS.Event.ShowPopup.bindAsEventListener(element);
> >            Event.stopObserving(element, 'click', act)
> > ...
> > when i call registerEvent,.. its work but Unregister event dont work..
> > any idea?
>
> "act" is not the same both times.  bindAsEventListener() returns a new
> function each time you call it.  
> seehttp://prototypejs.org/api/event/stopObserving
>
> You'll need to save the bound function somewhere so that you can detach
> it later.
>
> - Ken Snyder
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to