1
0
Fork 0
forked from 0x2620/oxjs

fix a bug where in info list, the value of the sort key would not be requested when changing the sort order of the list (fixes #747)

This commit is contained in:
rlx 2012-04-22 11:50:57 +00:00
commit 374508a9f1
2 changed files with 14 additions and 9 deletions

View file

@ -65,7 +65,8 @@ Ox.IconList = function(options, self) {
self.itemWidth = self.options.size;
self.itemHeight = self.iconHeight + self.options.size * 0.5;
that.$element = Ox.List({
that.setElement(
Ox.List({
centered: self.options.centered,
// fixme: change all occurences of construct to render
construct: constructItem,
@ -89,7 +90,8 @@ Ox.IconList = function(options, self) {
select: function() {
self.options.selected = that.$element.options('selected');
}
});
})
);
updateKeys();
@ -141,7 +143,6 @@ Ox.IconList = function(options, self) {
} else if (key == 'sort') {
updateKeys();
that.$element.options(key, value);
//that.$element.sortList(key, operator);
}
};