From df78a716afa0b262e5ab2fbd322617e34406b7df Mon Sep 17 00:00:00 2001 From: btrauma8 Date: Fri, 4 Sep 2015 15:22:22 -0500 Subject: [PATCH 1/2] 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" --- src/tooltip/tooltip.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tooltip/tooltip.js b/src/tooltip/tooltip.js index 984f429a3b..4d108137da 100644 --- a/src/tooltip/tooltip.js +++ b/src/tooltip/tooltip.js @@ -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) { From 45811f53e9d54131214f841816e51c2867f251a5 Mon Sep 17 00:00:00 2001 From: btrauma8 Date: Fri, 4 Sep 2015 15:32:32 -0500 Subject: [PATCH 2/2] Update tooltip.js --- src/tooltip/tooltip.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tooltip/tooltip.js b/src/tooltip/tooltip.js index 4d108137da..864d861afc 100644 --- a/src/tooltip/tooltip.js +++ b/src/tooltip/tooltip.js @@ -234,8 +234,10 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position']) // Hide the tooltip popup element. function hide() { - if (!ttScope) return; // If no longer exists - + if (!ttScope) { + return; + } + // First things first: we don't show it anymore. ttScope.isOpen = false; if (isOpenExp) {