revert last commit

This commit is contained in:
j 2013-06-04 12:27:09 +00:00
parent e4b935e5ed
commit e929a7266a

View file

@ -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'