remove caching logic from jquery.couch2
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
window.couch = {};
|
window.couch = {};
|
||||||
|
|
||||||
var cache = {};
|
|
||||||
|
|
||||||
var defaults = {
|
var defaults = {
|
||||||
headers: {"Accept":"application/json"},
|
headers: {"Accept":"application/json"},
|
||||||
dataType:"json",
|
dataType:"json",
|
||||||
@@ -17,10 +15,6 @@
|
|||||||
return $.ajax(ajaxOpts).promise();
|
return $.ajax(ajaxOpts).promise();
|
||||||
}
|
}
|
||||||
|
|
||||||
couch.clearCache = function() {
|
|
||||||
cache = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
couch.get = function(url) {
|
couch.get = function(url) {
|
||||||
return couch.request({url:url, type:'GET'});
|
return couch.request({url:url, type:'GET'});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user