diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 904c340d..c1e789fe 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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;