From 6bad3345da9802e9b1863dfbc387256880050350 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Feb 2014 08:07:51 +0000 Subject: [PATCH] dont clone if not needed --- source/Ox.UI/js/Video/VideoEditPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index 3aacf520..04e7ca22 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -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'],