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 13, 2010
1 parent ae911ae commit 5359560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model_class_methods.js
Expand Up @@ -69,7 +69,7 @@ Model.ClassMethods = {
self.add(models[i])
}

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

Expand Down

0 comments on commit 5359560

Please sign in to comment.