[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.  see 
http://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