fix #2327 (Video Player throws when trying to add or edit subtitle)

This commit is contained in:
rolux 2014-02-18 08:22:56 +00:00
parent 18cd1fedc9
commit 5dac5b5a19

View file

@ -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});