From 197f937d86a637008cc57f63bfb0292c22e9037b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 30 Jun 2012 19:59:20 +0000 Subject: [PATCH] remove some list voodoo --- source/Ox.UI/js/List/List.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/Ox.UI/js/List/List.js b/source/Ox.UI/js/List/List.js index 1653c2ac..6523c8c2 100644 --- a/source/Ox.UI/js/List/List.js +++ b/source/Ox.UI/js/List/List.js @@ -108,12 +108,7 @@ Ox.List = function(options, self) { that.reloadList(); }, selected: function() { - var previousSelected = Ox.clone(self.selected); - setSelected(self.options.selected, function() { - if (!Ox.isEqual(self.selected, previousSelected)) { - triggerSelectEvent(self.options.selected); - } - }); + setSelected(self.options.selected); }, sort: function() { updateSort(); @@ -1205,6 +1200,7 @@ Ox.List = function(options, self) { } function setSelected(ids, callback) { + // fixme: callback is never used // note: can't use selectNone here, // since it'd trigger a select event Ox.Log('List', 'SET SELECTED', ids)