iface
2008-Apr-18 00:41 UTC
showing what events are attached to an element with prototype 1.5.0
Hello Once an element is listening for an event like mouseover with a statement like Event.observe. Later is it possible to get a list of which mouseover listeners are attached to an element? I don''t need to interact with them, I''d just like to know if it already has a mouseover listener. Event.observe(element, ''mouseover'', Tool.showTool.bindAsEventListener(Tool)); element -> show listeners --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
iface
2008-Apr-18 15:28 UTC
Re: showing what events are attached to an element with prototype 1.5.0
In looking at prototype I found the Event.observers array. This looks like the info I needed. On Apr 17, 8:41 pm, iface <patr...-Nfxo2x9WYXhBDgjK7y7TUQ@public.gmane.org> wrote:> Hello > Once an element is listening for an event like mouseover with a > statement like Event.observe. Later is it possible to get a list of > which mouseover listeners are attached to an element? I don''t need to > interact with them, I''d just like to know if it already has a > mouseover listener. > > Event.observe(element, ''mouseover'', > Tool.showTool.bindAsEventListener(Tool)); > > element -> show listeners--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---