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

@ -28,6 +28,16 @@ Ox.ListCalendar = function(options, self) {
width: 256
})
.options(options || {})
.update({
height: function() {
// fixme: should be .resizeList
self.$list.size();
self.$calendar.resizeCalendar();
},
width: function() {
self.$calendar.resizeCalendar();
}
})
.css({
width: self.options.width + 'px',
height: self.options.height + 'px'
@ -807,16 +817,6 @@ Ox.ListCalendar = function(options, self) {
self.$list.options({items: events});
}
self.setOption = function(key, value) {
if (key == 'height') {
// fixme: should be .resizeList
self.$list.size();
self.$calendar.resizeCalendar();
} else if (key == 'width') {
self.$calendar.resizeCalendar();
}
};
return that;
};