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

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 #4346
Fixes #3347
  • Loading branch information
btrauma8 authored and wesleycho committed Sep 4, 2015
1 parent f7cb8bc commit 1e039e8
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 1e039e8

Please sign in to comment.