Stevo said the following on 9/13/2007 10:08 AM:
Randy Webb wrote:
>josh said the following on 9/13/2007 7:03 AM:
>>infact if I assing it via window.onerror = myError it works!
Novel idea: Use window.onerror=myError instead of addEventListener and
all is fine with the world.......
All is fine with the world as long as nothing else was already assigned
as the handler. If it was, then it's nuked.
If it was, and you add another that handles the errors a different way
or is written to specific errors, then one of them is nuked anyway.
Adding onload events when one already exists is one scenario where I can
see it mattering, but with onerror it just seems perverse to want more
than one function handling them.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/