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);
|
that.triggerEvent('muted', data);
|
||||||
},
|
},
|
||||||
open: function(data) {
|
open: function(data) {
|
||||||
var clip = Ox.clone(Ox.last(self.options.clips.filter(function(clip) {
|
var clip = Ox.last(self.options.clips.filter(function(clip) {
|
||||||
return clip.position < self.options.position;
|
return clip.position <= self.options.position;
|
||||||
})));
|
}));
|
||||||
that.triggerEvent('openlink', {
|
that.triggerEvent('openlink', {
|
||||||
annotation: clip.annotation,
|
annotation: clip.annotation,
|
||||||
'in': clip['in'],
|
'in': clip['in'],
|
||||||
|
|
Loading…
Reference in a new issue