Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
avoid the cannot read isOpen of null bug
if in an ng-repeat and you delete item from array, if tooltipshowing, you get "cannot read isOpen of null"
  • Loading branch information
btrauma8 committed Sep 4, 2015
commit df78a716afa0b262e5ab2fbd322617e34406b7df
2 changes: 2 additions & 0 deletions src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])

// Hide the tooltip popup element.
function hide() {
if (!ttScope) return; // If no longer exists

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