From eaa23ca4c861f571b52463c3702221e9b7804b12 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 18 Jul 2013 13:58:49 +0000 Subject: [PATCH] video edit panel: don't set in and out when selecting clip --- source/Ox.UI/js/Video/VideoEditPanel.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index 7e834b1d..d0258cd3 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -464,23 +464,15 @@ Ox.VideoEditPanel = function(options, self) { function selectClip() { var id, - points = { - 'in': Ox.last(self.options.clips).position, - out: self.options.duration - }; + position = Ox.last(self.options.clips).position; Ox.forEach(self.options.clips, function(clip, i) { if (clip.position > self.options.position) { id = self.options.clips[i - 1].id; - points = { - 'in': self.options.clips[i - 1].position, - out: self.options.clips[i].position - }; + position = self.options.clips[i - 1].position; return false; // break } }); - setPosition(points['in']); - setPoint('in', points['in']); - setPoint('out', points.out); + setPosition(position); self.options.selected = [id]; Ox.print('????', self.$clipPanel.options('selected')) self.$clipPanel.options({selected: self.options.selected});