Skip to content
Browse files

return error instead of err

  • Loading branch information...
1 parent 203f7f9 commit 76143f3741f22602eeeac52e3d14c2be3aba1346 @kkaefer kkaefer committed Sep 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 shared/utils.js
View
4 shared/utils.js
@@ -19,12 +19,12 @@ Bones.utils.fetch = function(models, callback) {
_(models).each(function(model) {
model.fetch({
success: function() {
- if (--remaining === 0) callback(err, models);
+ if (--remaining === 0) callback(error, models);
},
error: function(m, err) {
if (!error) error = err;
model.error = err;
- if (--remaining === 0) callback(err, models);
+ if (--remaining === 0) callback(error, models);
}
});
});

0 comments on commit 76143f3

Please sign in to comment.
Something went wrong with that request. Please try again.