[Project_owners] Conflicting Event Listeners

Konstantin Svist fry.kun at gmail.com
Thu Jun 9 19:23:37 EDT 2005


I was under the impression that all event handlers are handled in
parallel - that is, if you attach 10 events to page's 'onload' event,
all 10 will be executed.
Maybe popup menus are different but I don't see why...

~Konstantin

On 6/9/05, Scott Turner <srt19170 at gmail.com> wrote:
> My extension, platypus.mozdev.org, uses a "popupshowing" event handler to
> show only Platypus commands on the context menu when Platypus is running. 
> It turns out that this conflicts some times with rip.mozdev.org, another
> extension that uses a "popupshowing" event handler to modify the context
> menu.
>  
>  As far as I can tell, there isn't any way to order or coordinate the
> different event handlers, so there's no telling whether Platypus will run
> first when modifying the context menu, or whether RIP will.
>  
>  Anyone have any suggestions on how to reliably modify the context menu, or
> is this just an inevitable problem with the event model?
>  
>  -- Scott Turner
>  
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 
> 
>


More information about the Project_owners mailing list