All observers are stored in the array Event.observers so you can use
code like this to get all observers for element ''myElm'':
var myObservers = Event.observers.select(function(observers) { return
observers.first() == $(''myElm'') });
Each entry in the observers array is another array: [element, name,
observer, useCapture].
Refer to the source code for more info:
http://dev.rubyonrails.org/browser/spinoffs/prototype/src/event.js#L64
Martin
On 10/6/06, Javier Martinez
<ecentinela-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> There is any way to view a list of the observers that are controlling some
> element?
>
> Thanks.
>
> >
>
--
burnfield.com/martin
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---