Fix NPE
This commit is contained in:
parent
a1147236ea
commit
9408138230
1 changed files with 3 additions and 0 deletions
|
@ -2585,7 +2585,10 @@ quayApp.directive('focusablePopoverContent', ['$timeout', '$popover', function (
|
|||
$body = $('body');
|
||||
var hide = function() {
|
||||
$body.off('click');
|
||||
|
||||
if (!scope) { return; }
|
||||
scope.$apply(function() {
|
||||
if (!scope) { return; }
|
||||
scope.$hide();
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue