Trunk code creates unused stack traces

Im working with a relatively large base code base, and it seems like whenever I get a javascript error, no matter what it is. The column that appears in the console looks identical (example below). All my models / views are created using the .extend method. Does anyone else have this problem or know how to fix it? Usually I have to give console.log instructions everywhere to find the source of the error and its a lot of time. Thanks.

jquery-1.5.min.js:16 Uncaught InvalidConstructorArgs d.extend._Deferred.f.resolveWith jquery-1.5.min.js:16 v jquery-1.5.min.js:16 d.support.ajax.d.ajaxTransport.send.c jquery-1.5.min.js:16 
+4
source share
2 answers

When debugging, you should use an invalid version of jQuery, Underscore, and Backbone. Life will be much easier if you do.

As far as I can tell, you have a problem calling $.ajax inside them with Backbone.sync , but it's too hard to tell when you are working with mini JS.

+5
source

Upgrading to jQuery 1.6.4 solved this problem

0
source

Source: https://habr.com/ru/post/1379232/


All Articles