@@ -117,7 +117,6 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
117
117
var popupTimeout ;
118
118
var appendToBody = angular . isDefined ( options . appendToBody ) ? options . appendToBody : false ;
119
119
var triggers = getTriggers ( undefined ) ;
120
- var hasRegisteredTriggers = false ;
121
120
var hasEnableExp = angular . isDefined ( attrs [ prefix + 'Enable' ] ) ;
122
121
123
122
var positionTooltip = function ( ) {
@@ -299,11 +298,9 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
299
298
scope . tt_popupDelay = ! isNaN ( delay ) ? delay : options . popupDelay ;
300
299
} ) ;
301
300
302
- var unregisterTriggers = function ( ) {
303
- if ( hasRegisteredTriggers ) {
304
- element . unbind ( triggers . show , showTooltipBind ) ;
305
- element . unbind ( triggers . hide , hideTooltipBind ) ;
306
- }
301
+ var unregisterTriggers = function ( ) {
302
+ element . unbind ( triggers . show , showTooltipBind ) ;
303
+ element . unbind ( triggers . hide , hideTooltipBind ) ;
307
304
} ;
308
305
309
306
attrs . $observe ( prefix + 'Trigger' , function ( val ) {
@@ -317,8 +314,6 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
317
314
element . bind ( triggers . show , showTooltipBind ) ;
318
315
element . bind ( triggers . hide , hideTooltipBind ) ;
319
316
}
320
-
321
- hasRegisteredTriggers = true ;
322
317
} ) ;
323
318
324
319
var animation = scope . $eval ( attrs [ prefix + 'Animation' ] ) ;
0 commit comments