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

Commit

Permalink
fix(tooltip): null scope check in isOpen watch
Browse files Browse the repository at this point in the history
The watch for the isOpen property from the model was not
checking to see if the internal tooltip scope was still
valid (null or undefined) before comparing the value to
the tooltip scope isOpen property.

Closes #4697
Fixes #4683
  • Loading branch information
RobJacobs committed Oct 23, 2015
1 parent 1599cff commit 1f94104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
if (isOpenParse) {
scope.$watch(isOpenParse, function(val) {
/*jshint -W018 */
if (!val === ttScope.isOpen) {
if (ttScope && !val === ttScope.isOpen) {
toggleTooltipBind();
}
/*jshint +W018 */
Expand Down

0 comments on commit 1f94104

Please sign in to comment.