From e283ff1053e7184d91f06fe7c88c1c4cc18d0b75 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 13 Jul 2013 21:06:03 +0000 Subject: [PATCH] cleanup --- source/Ox.UI/js/List/IconList.js | 9 --------- source/Ox.UI/js/List/InfoList.js | 8 -------- source/Ox.UI/js/List/TableList.js | 17 ++--------------- 3 files changed, 2 insertions(+), 32 deletions(-) diff --git a/source/Ox.UI/js/List/IconList.js b/source/Ox.UI/js/List/IconList.js index 14664180..4494953a 100644 --- a/source/Ox.UI/js/List/IconList.js +++ b/source/Ox.UI/js/List/IconList.js @@ -192,15 +192,6 @@ Ox.IconList = function(options, self) { return that; }; - /*@ - paste paste into list - () -> the list - @*/ - that.paste = function(data) { - that.$element.paste(data); - return that; - }; - /*@ reloadList reload list () -> the list diff --git a/source/Ox.UI/js/List/InfoList.js b/source/Ox.UI/js/List/InfoList.js index ccde5d70..92c7d60b 100644 --- a/source/Ox.UI/js/List/InfoList.js +++ b/source/Ox.UI/js/List/InfoList.js @@ -213,14 +213,6 @@ Ox.InfoList = function(options, self) { return that; }; - /*@ - paste paste - @*/ - that.paste = function(data) { - that.$element.paste(data); - return that; - }; - /*@ reloadList reloadList @*/ diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 0f2cc519..300a6b47 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -972,12 +972,8 @@ Ox.TableList = function(options, self) { addColumn(id); }; - that.addItem = function(item) { - /* - self.options.items.push(item); - that.$body.options({items: self.options.items}); - //that.$body.options({selected: [item.id]}); - */ + that.addItems = function(items) { + that.$body.addItems(items); }; that.api = that.$body.options('items'); @@ -1089,15 +1085,6 @@ Ox.TableList = function(options, self) { return that; }; - /*@ - paste paste - (data) -> paste data - @*/ - that.paste = function(data) { - that.$body.paste(); - return that; - }; - /*@ reloadList reloadList (stayAtPosition) -> reload list