remove some list voodoo
This commit is contained in:
parent
f22e5a032d
commit
197f937d86
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue