Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Store.prototype.find = function(callback) {
- $.ajax({
- type: "GET",
- url: this.url , // query.id
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (data, status, xhr) {
- callback(null, data);
- },
- error: function (xhr, status) {
- callback(new Error("couldn't find items"));
- // callback(new Error(xhr.responseText));
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement