This mixin provides
ajax()
method which works with jQuery.Examples
var MyKago = KagoDB.inherit();
MyKago.mixin(KagoDB.bundle.jquery());
var collection = new MyKago();
var options = {
method: 'GET',
url: 'http://graph.facebook.com/4',
};
collection.ajax(options, function(err, body) {
console.log(body); // JSON
});
var opts = {
storage: 'ajax',
ajax: 'jquery',
endpoint: 'http://localhost:3000/data/'
};
var collection = new KagoDB(opts);
collection.read('foo', function(err, item){
// item => http://localhost:3000/data/foo
});