jquery - Javascript: Errors arent being displayed on event listeners -


i have problem driving me crazy. have 2 event listeners appear identical. being called same scope @ different times. have been using chromes debugger tool step through them. first 1 throw error

typeerror: object 1 has no method 'get'

but second example simple stops executing

el.on("change:one", function() {   debugger;   = 1;   a.get(); });  el.on("change:two", function() {   debugger;   = 1;   a.get(); }); 

i understand simple asking why happening needs detailed explanation of libraries being used etc, question is:

is possible not display errors thrown javascript, , how able detect whether overriding error reporting functionality

note: in both examples have determined window.onerror null

backbone invokes event handlers synchronously , doesn't catch handler exceptions. if had code looked like:

el.trigger('change:one'); // handler throw exception el.trigger('change:two'); // won't execute 

the change:two event never triggered, resulting in change:two handler never getting invoked.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -