dont fail if annotation folder does not have focus

This commit is contained in:
j 2015-04-15 10:10:46 +01:00
parent 3c006f9bc5
commit 5958b9f408

View file

@ -504,9 +504,10 @@ Ox.AnnotationPanel = function(options, self) {
} }
}, },
hide: function() { hide: function() {
self.options.selected var folder = self.options.selected
? getFolder(self.options.selected).gainFocus() ? getFolder(self.options.selected)
: that.triggerEvent('focus'); : null;
folder ? folder.gainFocus() : that.triggerEvent('focus');
} }
}) })
.appendTo(self.$menubar); .appendTo(self.$menubar);