Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 1e039e8

Browse files
btrauma8wesleycho
authored andcommitted
fix(tooltip): do nothing if $scope doesn't exist
- Do nothing on hide when `$scope` is already removed Closes #4346 Fixes #3347
1 parent f7cb8bc commit 1e039e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/tooltip/tooltip.js

+4
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])
234234

235235
// Hide the tooltip popup element.
236236
function hide() {
237+
if (!ttScope) {
238+
return;
239+
}
240+
237241
// First things first: we don't show it anymore.
238242
ttScope.isOpen = false;
239243
if (isOpenExp) {

0 commit comments

Comments
 (0)