Advertisement
Guest User

aaaaaaa

a guest
May 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Store.prototype.find = function(callback) {
  2.  
  3.         $.ajax({
  4.             type: "GET",
  5.             url: this.url ,                             // query.id
  6.             contentType: "application/json; charset=utf-8",
  7.             dataType: "json",
  8.             success: function (data, status, xhr) {
  9.                 callback(null, data);
  10.             },
  11.             error: function (xhr, status) {
  12.                 callback(new Error("couldn't find items"));
  13.                 // callback(new Error(xhr.responseText));
  14.  
  15.             }
  16.         });
  17.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement