1
0
Fork 0
forked from 0x2620/oxjs

add Ox.sortBy

This commit is contained in:
rlx 2012-01-11 16:17:06 +05:30
commit 11d9b63dba
2 changed files with 98 additions and 44 deletions

View file

@ -156,9 +156,9 @@ Ox.AnnotationPanel = function(options, self) {
self.setOption = function(key, value) {
if (['in', 'out'].indexOf(key) > -1 && self.editing) {
var index = Ox.getIndexById(self.options.items, self.options.selected);
self.options.items[index][key] = value;
self.options.items[index].duration = self.options.out - self.options['in'];
var item = Ox.getObjectById(self.options.items, self.options.selected);
items[key] = value;
items.duration = self.options.out - self.options['in'];
}
if (key == 'in') {
//fixme: array editable should support item updates while editing