Subj : Re: Strange problems with function objects & event listeners To : netscape.public.mozilla.jseng,netscape.public.dev.xul From : Michael Vincent van Rantwijk Date : Tue Sep 27 2005 09:34 pm Lev Serebryakov wrote: > Hello! > > I have such code in my JavaScript file, included into XUL overlay: > > > function myext_initUI( event ) > { > // Some code without any errors > window.dump( "[myext] Init finished without exceptions\n" ); > } > window.addEventListener( "load", myext_initUI, false ); > // EOF > > It works. Event listener is called, my UI-initialization tasks > complete, and very last line of function write line into console > without errors. > > But "Google Toolbar" extension doesn't work with my one! > Investigation shows, that NO MORE "load" LISTENERS ARE CALLED AFTER MY > ONE! Two questions: 1) what if you remove the dump()? 2) what if you use true instead of false? Michael .