request controller
This commit is contained in:
parent
a19578af35
commit
9e438c4990
1 changed files with 6 additions and 2 deletions
|
@ -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 a new issue