Skip to content

Commit

Permalink
fix(tooltip): do nothing if $scope doesn't exist
Browse files Browse the repository at this point in the history
- Do nothing on hide when `$scope` is already removed

Closes angular-ui#4346
Fixes angular-ui#3347
  • Loading branch information
btrauma8 authored and jasonaden committed Sep 30, 2015
1 parent e0b6430 commit 220a3fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])

// Hide the tooltip popup element.
function hide() {
if (!ttScope) {
return;
}

// First things first: we don't show it anymore.
ttScope.isOpen = false;
if (isOpenExp) {
Expand Down

0 comments on commit 220a3fc

Please sign in to comment.