File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 604
604
node . hasClass ( 'fade' ) &&
605
605
node . is ( ':visible' )
606
606
) {
607
+ var transitionEndHandler = function ( e ) {
608
+ // Make sure we don't respond to other transition events
609
+ // in the container element, e.g. from button elements:
610
+ if ( e . target === node [ 0 ] ) {
611
+ node . unbind ( $ . support . transition . end , transitionEndHandler ) ;
612
+ dfd . resolveWith ( node ) ;
613
+ }
614
+ } ;
607
615
node
608
- . bind ( $ . support . transition . end , function ( e ) {
609
- // Make sure we don't respond to other transitions events
610
- // in the container element, e.g. from button elements:
611
- if ( e . target === node [ 0 ] ) {
612
- node . unbind ( $ . support . transition . end ) ;
613
- dfd . resolveWith ( node ) ;
614
- }
615
- } )
616
+ . bind ( $ . support . transition . end , transitionEndHandler )
616
617
. toggleClass ( 'in' ) ;
617
618
} else {
618
619
node . toggleClass ( 'in' ) ;
You can’t perform that action at this time.
0 commit comments