Permalink
Browse files

Call the Model.load callback with the scope of the class.

  • Loading branch information...
1 parent ae911ae commit 5359560c6d19053bc72b38c2496fb215f6dedd04 @benpickles committed Aug 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/model_class_methods.js
@@ -69,7 +69,7 @@ Model.ClassMethods = {
self.add(models[i])
}
- if (callback) callback(models)
+ if (callback) callback.call(self, models)
})
}

0 comments on commit 5359560

Please sign in to comment.