forked from 0x2620/oxjs
add Ox.sortBy
This commit is contained in:
parent
923f71e6de
commit
11d9b63dba
2 changed files with 98 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue