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 <[EMAIL PROTECTED]> 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 [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
-~----------~----~----~----~------~----~------~--~---