diff --git a/source/UI/js/Video/AnnotationPanel.js b/source/UI/js/Video/AnnotationPanel.js index f9347af6..0eb82cc3 100644 --- a/source/UI/js/Video/AnnotationPanel.js +++ b/source/UI/js/Video/AnnotationPanel.js @@ -332,9 +332,10 @@ Ox.AnnotationPanel = function(options, self) { } }, hide: function() { - self.options.selected - ? getFolder(self.options.selected).gainFocus() - : that.triggerEvent('focus'); + var folder = self.options.selected + ? getFolder(self.options.selected) + : null; + folder ? folder.gainFocus() : that.triggerEvent('focus'); } }) .appendTo(self.$menubar);