From 4600cd913474a953695869995f6f555baa82cf5c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 2 Jan 2012 19:25:15 +0530 Subject: [PATCH] timeline is optional --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 181ed1dc..4f8c39c2 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1956,7 +1956,7 @@ Ox.VideoPlayer = function(options, self) { setSize(self.$spaceTop, getCSS('spaceTop'), animate); setSize(self.$controlsBottom, getCSS('controlsBottom'), animate); setSize(self.$timeline, getCSS('timeline'), animate, function() { - self.$timeline.options({ + self.$timeline && self.$timeline.options({ width: self.timelineWidth }); }); @@ -2326,7 +2326,7 @@ Ox.VideoPlayer = function(options, self) { setSizes(); } else if (key == 'in' || key == 'out') { self.options.paused && setMarkers(); - self.$timeline.options(key, value); + self.$timeline && self.$timeline.options(key, value); } else if (key == 'muted') { toggleMuted(); } else if (key == 'paused') {