remove some list voodoo

This commit is contained in:
rlx 2012-06-30 19:59:20 +00:00
parent f22e5a032d
commit 197f937d86

View file

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