From 53f57939ec92e7dbfa17d26a1d73240b5803e2a4 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 14 Mar 2012 10:38:32 +0000 Subject: [PATCH] fix a bug with toggling paused state --- source/Ox.UI/js/Video/Ox.VideoTimelinePlayer.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoTimelinePlayer.js b/source/Ox.UI/js/Video/Ox.VideoTimelinePlayer.js index e84fcefa..568ed9a9 100644 --- a/source/Ox.UI/js/Video/Ox.VideoTimelinePlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoTimelinePlayer.js @@ -79,7 +79,9 @@ Ox.VideoTimelinePlayer = function(options, self) { self.options.position += 1 / self.fps; setPosition(); }, - key_space: togglePaused, + key_space: function() { + togglePaused() + }, key_up: function() { self.options.position -= self.contentWidth / self.fps; setPosition(); @@ -97,7 +99,9 @@ Ox.VideoTimelinePlayer = function(options, self) { float: 'left' }) .bindEvent({ - click: togglePaused + click: function() { + togglePaused(); + } }) .appendTo(self.$bottomBar); self.$muteButton = Ox.Button({