1
0
Fork 0
forked from 0x2620/oxjs

self.setOption ~> that.update

This commit is contained in:
j 2012-05-28 19:35:41 +00:00
commit 005d50c389
56 changed files with 919 additions and 933 deletions

View file

@ -27,7 +27,20 @@ Ox.TreeList = function(options, self) {
selected: [],
width: 'auto'
})
.options(options || {});
.options(options || {})
.update({
data: function() {
// ...
},
selected: function() {
//self.$list.options({selected: self.options.selected});
selectItem({ids: self.options.selected});
self.$list.scrollToSelection();
},
width: function() {
// ...
}
});
if (self.options.data) {
self.options.items = [];
@ -249,18 +262,6 @@ Ox.TreeList = function(options, self) {
});
}
self.setOption = function(key, value) {
if (key == 'data') {
// ...
} else if (key == 'selected') {
//self.$list.options({selected: value});
selectItem({ids: value});
self.$list.scrollToSelection();
} else if (key == 'width') {
// ...
}
};
/*@
gainFocus <f> gainFocus
@*/