From 51bf0498da1ead8a2ebe5f2684d6b0773ac06c8d Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 11 Dec 2012 16:36:38 +0100 Subject: [PATCH] in TableList and CustomList, expose list api --- source/Ox.UI/js/List/CustomList.js | 2 ++ source/Ox.UI/js/List/TableList.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/CustomList.js b/source/Ox.UI/js/List/CustomList.js index 80278d3a..71573492 100644 --- a/source/Ox.UI/js/List/CustomList.js +++ b/source/Ox.UI/js/List/CustomList.js @@ -74,6 +74,8 @@ Ox.CustomList = function(options, self) { }) .appendTo(that); + that.api = self.$list.options('items'); + /*@ gainFocus gain Focus @*/ diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 0473e897..ff09fb00 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -926,7 +926,9 @@ Ox.TableList = function(options, self) { that.$body.options({items: self.options.items}); //that.$body.options({selected: [item.id]}); */ - } + }; + + that.api = that.$body.options('items'); /*@ closePreivew closePreview