Skip to content

Commit

Permalink
Call the Model.load callback with the scope of the class.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Sep 22, 2010
1 parent 33c406a commit 31055de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model_class_methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Model.ClassMethods = {
self.add(models[i])
}

if (callback) callback(models)
if (callback) callback.call(self, models)
})
}

Expand Down

0 comments on commit 31055de

Please sign in to comment.