From e929a7266aab899ed2f71f272d0de27b31e4529f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 4 Jun 2013 12:27:09 +0000 Subject: [PATCH] revert last commit --- source/Ox.UI/js/List/List.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/List/List.js b/source/Ox.UI/js/List/List.js index 1a6788f6..f58f0c00 100644 --- a/source/Ox.UI/js/List/List.js +++ b/source/Ox.UI/js/List/List.js @@ -1403,8 +1403,9 @@ Ox.List = function(options, self) { } function updateQuery(callback) { // fixme: shouldn't this be setQuery? + var data; clear(); // fixme: bad function name ... clear what? - self.requests.push(self.options.items({ + self.requests.push(data = self.options.items({ query: self.options.query }, function(result) { var keys = {}; @@ -1414,7 +1415,10 @@ Ox.List = function(options, self) { setTimeout(function() { that.triggerEvent( 'init', - result.data + Ox.extend( + result.data, + data && data.query ? {query: data.query} : {} + ) ); self.rowLength = getRowLength(); self.pageLength = self.options.orientation == 'both'