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

fix(tooltip): null scope check in isOpen watch #4697

Merged
merged 1 commit into from
Oct 23, 2015
Merged
Changes from all commits
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
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