File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 28
28
Tooltip . VERSION = '3.1.1'
29
29
30
30
Tooltip . DEFAULTS = {
31
- animation : true ,
31
+ animation : 'fade' ,
32
32
placement : 'top' ,
33
33
selector : false ,
34
34
template : '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>' ,
84
84
hide : options . delay
85
85
}
86
86
}
87
-
88
- if ( options . animation && typeof options . animation == 'string' ) {
89
- options . _animation = options . animation
90
- options . animation = false
91
- }
92
87
93
88
return options
94
89
}
157
152
158
153
this . setContent ( )
159
154
160
- if ( this . options . animation ) $tip . addClass ( 'fade' )
161
-
162
155
var placement = typeof this . options . placement == 'function' ?
163
156
this . options . placement . call ( this , $tip [ 0 ] , this . $element [ 0 ] ) :
164
157
this . options . placement
201
194
202
195
var complete = function ( ) {
203
196
that . $element . trigger ( 'shown.bs.' + that . type )
204
- if ( that . options . _animation ) that . $tip . addClass ( that . options . _animation )
197
+ if ( that . options . animation ) $tip . addClass ( that . options . animation )
205
198
}
206
199
207
200
$ . support . transition && this . $tip . hasClass ( 'fade' ) ?
282
275
function complete ( ) {
283
276
if ( that . hoverState != 'in' ) $tip . detach ( )
284
277
that . $element . trigger ( 'hidden.bs.' + that . type )
285
- if ( that . options . _animation ) that . $tip . removeClass ( that . options . _animation )
278
+ if ( that . options . animation ) $tip . removeClass ( that . options . animation )
286
279
}
287
280
288
281
this . $element . trigger ( e )
You can’t perform that action at this time.
0 commit comments