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(); that.reloadList();
}, },
selected: function() { selected: function() {
var previousSelected = Ox.clone(self.selected); setSelected(self.options.selected);
setSelected(self.options.selected, function() {
if (!Ox.isEqual(self.selected, previousSelected)) {
triggerSelectEvent(self.options.selected);
}
});
}, },
sort: function() { sort: function() {
updateSort(); updateSort();
@ -1205,6 +1200,7 @@ Ox.List = function(options, self) {
} }
function setSelected(ids, callback) { function setSelected(ids, callback) {
// fixme: callback is never used
// note: can't use selectNone here, // note: can't use selectNone here,
// since it'd trigger a select event // since it'd trigger a select event
Ox.Log('List', 'SET SELECTED', ids) Ox.Log('List', 'SET SELECTED', ids)