dont clone if not needed
This commit is contained in:
parent
77376cd47c
commit
6bad3345da
1 changed files with 3 additions and 3 deletions
|
@ -247,9 +247,9 @@ Ox.VideoEditPanel = function(options, self) {
|
|||
that.triggerEvent('muted', data);
|
||||
},
|
||||
open: function(data) {
|
||||
var clip = Ox.clone(Ox.last(self.options.clips.filter(function(clip) {
|
||||
return clip.position < self.options.position;
|
||||
})));
|
||||
var clip = Ox.last(self.options.clips.filter(function(clip) {
|
||||
return clip.position <= self.options.position;
|
||||
}));
|
||||
that.triggerEvent('openlink', {
|
||||
annotation: clip.annotation,
|
||||
'in': clip['in'],
|
||||
|
|
Loading…
Reference in a new issue