From b233ad0c13f37c289ab958032a31102d3419d752 Mon Sep 17 00:00:00 2001 From: Rolux Date: Wed, 27 Jan 2010 18:04:27 +0530 Subject: [PATCH] request controller --- build/js/ox.ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 904c340..c1e789f 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;