diff --git a/source/UI/js/Video/AnnotationPanel.js b/source/UI/js/Video/AnnotationPanel.js index f7ff0116..7f3d8fd1 100644 --- a/source/UI/js/Video/AnnotationPanel.js +++ b/source/UI/js/Video/AnnotationPanel.js @@ -504,9 +504,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);