From 5dac5b5a19d722f554d2f5a847b1cf339fff1b7d Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 18 Feb 2014 08:22:56 +0000 Subject: [PATCH] fix #2327 (Video Player throws when trying to add or edit subtitle) --- source/Ox.UI/js/Video/VideoPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index 1ef1a51f..65b56e98 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -215,7 +215,7 @@ Ox.VideoPlayer = function(options, self) { }, subtitles: function() { loadSubtitles(); - self.$settings.replaceWith(self.$settings = renderSettings()); + self.$settings && self.$settings.replaceWith(self.$settings = renderSettings()); }, timeline: function() { self.$timeline.options({imageURL: self.options.timeline});