[jQuery] Re: mysterious $(window).error behavior

2009-01-23 Thread Adam Fisk
new Error("Inside doc ready error"); > >         }); > >         throw new Error("Outside doc ready error"); > >     > > > Thanks. > > > -Adam Fisk > > Hmm, I'm not sure that binding the window error event has ever been > supported by jQuery.  I'd stick with using onerror. > > window.onerror = function(msg, uri, line) { > > }

[jQuery] mysterious $(window).error behavior

2009-01-23 Thread Adam Fisk
's up? $(document).ready( function() { $(window).error(function(msg, url, line) { alert("Got error"); }); throw new Error("Inside doc ready error"); }); throw new Error("Outside doc ready error"); Thanks. -Adam Fisk