From abb6d2a8be12885e1034b994b5357b9f3510d906 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 07:01:45 +0530 Subject: [PATCH] pass query with list init event --- source/Ox.UI/js/List/List.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/List/List.js b/source/Ox.UI/js/List/List.js index 9ee6df75..5d9e7260 100644 --- a/source/Ox.UI/js/List/List.js +++ b/source/Ox.UI/js/List/List.js @@ -1397,12 +1397,13 @@ Ox.List = function(options, self) { query: self.options.query }, function(result) { var keys = {}; - //Ox.Log('List', 'INIT!!!', result.data) // timeout needed since a synchronous items function // will reach here before one can bind to the init event, // and before any sizes can be determined via the DOM setTimeout(function() { - that.triggerEvent('init', result.data); + that.triggerEvent( + 'init', Ox.extend(result.data, {query: self.options.query}) + ); self.rowLength = getRowLength(); self.pageLength = self.options.orientation == 'both' ? self.pageLengthByRowLength[self.rowLength]