Skip to content

Commit

Permalink
don't stop other widgets from loading if one failes
Browse files Browse the repository at this point in the history
  • Loading branch information
purge committed Nov 13, 2013
1 parent c5945e3 commit 0bd1724
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ define(['require', 'lib/bonzo/bonzo', 'lib/qwery/qwery', 'lib/bean/bean', 'domRe
loadMain();
}

}, function(err) { throw err; } );
}, function(err) {
//ignore errors from loader so other widgets can continue to load
if(window.console) { console.log("Didn't load " + pkg.url + ": " + err); }
} );
})(this.packages[id], id, this);
}
};
Expand Down

0 comments on commit 0bd1724

Please sign in to comment.