Skip to content

Instantly share code, notes, and snippets.

@foxdonut
Created September 5, 2013 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxdonut/6449596 to your computer and use it in GitHub Desktop.
Save foxdonut/6449596 to your computer and use it in GitHub Desktop.
can.Model({
findAll: function(params) {
var dfd = new can.Deferred();
$.get("/abc", params, function(response) {
dfd.resolve(response.model);
});
return dfd.promise();
}
}, {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment