dont clone if not needed

This commit is contained in:
j 2014-02-09 08:07:51 +00:00
parent 77376cd47c
commit 6bad3345da

View file

@ -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'],