selected item might be gone
This commit is contained in:
parent
cb875c86df
commit
da08120ff4
1 changed files with 4 additions and 3 deletions
|
@ -332,9 +332,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);
|
||||||
|
|
Loading…
Reference in a new issue