File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 49
49
50
50
if ( $this . parent ( 'li' ) . hasClass ( 'active' ) ) return
51
51
52
- previous = $ul . find ( '.active a' ) . last ( ) [ 0 ]
52
+ previous = $ul . find ( '.active:last a' ) [ 0 ]
53
53
54
54
e = $ . Event ( 'show' , {
55
55
relatedTarget : previous
Original file line number Diff line number Diff line change 119
119
inside = / i n / . test ( placement )
120
120
121
121
$tip
122
- . remove ( )
122
+ . detach ( )
123
123
. css ( { top : 0 , left : 0 , display : 'block' } )
124
124
. insertAfter ( this . $element )
125
125
166
166
167
167
function removeWithAnimation ( ) {
168
168
var timeout = setTimeout ( function ( ) {
169
- $tip . off ( $ . support . transition . end ) . remove ( )
169
+ $tip . off ( $ . support . transition . end ) . detach ( )
170
170
} , 500 )
171
171
172
172
$tip . one ( $ . support . transition . end , function ( ) {
173
173
clearTimeout ( timeout )
174
- $tip . remove ( )
174
+ $tip . detach ( )
175
175
} )
176
176
}
177
177
178
178
$ . support . transition && this . $tip . hasClass ( 'fade' ) ?
179
179
removeWithAnimation ( ) :
180
- $tip . remove ( )
180
+ $tip . detach ( )
181
181
182
182
return this
183
183
}
Original file line number Diff line number Diff line change 1079
1079
inside = / i n / . test ( placement )
1080
1080
1081
1081
$tip
1082
- . remove ( )
1082
+ . detach ( )
1083
1083
. css ( { top : 0 , left : 0 , display : 'block' } )
1084
1084
. insertAfter ( this . $element )
1085
1085
1126
1126
1127
1127
function removeWithAnimation ( ) {
1128
1128
var timeout = setTimeout ( function ( ) {
1129
- $tip . off ( $ . support . transition . end ) . remove ( )
1129
+ $tip . off ( $ . support . transition . end ) . detach ( )
1130
1130
} , 500 )
1131
1131
1132
1132
$tip . one ( $ . support . transition . end , function ( ) {
1133
1133
clearTimeout ( timeout )
1134
- $tip . remove ( )
1134
+ $tip . detach ( )
1135
1135
} )
1136
1136
}
1137
1137
1138
1138
$ . support . transition && this . $tip . hasClass ( 'fade' ) ?
1139
1139
removeWithAnimation ( ) :
1140
- $tip . remove ( )
1140
+ $tip . detach ( )
1141
1141
1142
1142
return this
1143
1143
}
1536
1536
1537
1537
if ( $this . parent ( 'li' ) . hasClass ( 'active' ) ) return
1538
1538
1539
- previous = $ul . find ( '.active a' ) . last ( ) [ 0 ]
1539
+ previous = $ul . find ( '.active:last a' ) [ 0 ]
1540
1540
1541
1541
e = $ . Event ( 'show' , {
1542
1542
relatedTarget : previous
You can’t perform that action at this time.
0 commit comments