make setting sort option of icon list work

This commit is contained in:
rlx 2011-08-17 13:22:29 +00:00
parent 31149d7ecc
commit c4842ca863
2 changed files with 3 additions and 1 deletions

View file

@ -139,6 +139,8 @@ Ox.IconList = function(options, self) {
that.$element.options(key, value);
} else if (key == 'selected') {
that.$element.options(key, value);
} else if (key == 'sort') {
that.$element.options(key, value);
}
};

View file

@ -1314,7 +1314,7 @@ Ox.List = function(options, self) {
// may break other things
!self.isAsync && triggerSelectEvent(value);
} else if (key == 'sort') {
//Ox.print('---sort---')
Ox.print('---sort---')
updateSort();
}
};