combine multiple list.value into one

This commit is contained in:
j 2014-02-13 09:31:06 +00:00
commit a7f520281d
2 changed files with 6 additions and 3 deletions

View file

@ -645,8 +645,11 @@ Ox.ClipPanel = function(options, self) {
that.updateItem = function(id, data) {
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
['in', 'out', 'duration'].forEach(function(key) {
self.$list.value(id, key, data[key]);
self.$list.value(id, {
duration: data.duration,
'in': data['in'],
out: data.out,
sort: data.sort
});
return that;
};