request controller
This commit is contained in:
parent
b24e8a9104
commit
b233ad0c13
|
@ -412,8 +412,12 @@ requires
|
|||
}
|
||||
},
|
||||
|
||||
emptyCache: function() {
|
||||
cache = {};
|
||||
}
|
||||
|
||||
options: function(options) {
|
||||
return Ox.getset(self.options, options, $.noop(), this)
|
||||
return Ox.getset(self.options, options, $.noop(), this);
|
||||
},
|
||||
|
||||
send: function(options) {
|
||||
|
@ -510,7 +514,7 @@ requires
|
|||
};
|
||||
if (cache[req] && (options.age == -1 || options.age > Ox.getTime() - cache[req].time)) {
|
||||
setTimeout(function() {
|
||||
callback(options.id, cache[req].data, callback);
|
||||
callback(cache[req].data, callback);
|
||||
}, 0);
|
||||
} else {
|
||||
pending[options.id] = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user