Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Swallowing Console Errors?

$
0
0
If you put a breakpoint on the console.dirs line and then step into, it brings you to 
  1. var pipe = function(def, model, func) {
    var d = new can.Deferred();
    def.then(function() {
    var args = can.makeArray(arguments);
    try {
    args[0] = model[func](args[0]);
    d.resolveWith(d, args);
    } catch (e) {
    d.rejectWith(d, [e].concat(args));
    }
    }, function() {
    d.rejectWith(this, arguments);
    });
It appears the error is being caught in the try/catch

Viewing all articles
Browse latest Browse all 3491

Trending Articles