This repository was archived by the owner on Feb 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 106
106
if ( e . keyCode === 27 && self . _options . exitOnEsc == true ) {
107
107
//escape key pressed, exit the intro
108
108
_exitIntro . call ( self , targetElm ) ;
109
+ //check if any callback is defined
110
+ if ( self . _introExitCallback != undefined ) {
111
+ self . _introExitCallback . call ( self ) ;
112
+ }
109
113
} else if ( e . keyCode === 37 ) {
110
114
//left arrow
111
115
_previousStep . call ( self ) ;
243
247
}
244
248
//set the step to zero
245
249
this . _currentStep = undefined ;
246
- //check if any callback is defined
247
- if ( this . _introExitCallback != undefined ) {
248
- this . _introExitCallback . call ( this ) ;
249
- }
250
250
}
251
251
252
252
/**
439
439
if ( self . _introItems . length - 1 == self . _currentStep && typeof ( self . _introCompleteCallback ) === 'function' ) {
440
440
self . _introCompleteCallback . call ( self ) ;
441
441
}
442
+
443
+ if ( self . _introItems . length - 1 != self . _currentStep && typeof ( self . _introExitCallback ) === 'function' ) {
444
+ self . _introExitCallback . call ( self ) ;
445
+ }
446
+
442
447
_exitIntro . call ( self , self . _targetElement ) ;
443
448
} ;
444
449
601
606
if ( self . _options . exitOnOverlayClick == true ) {
602
607
_exitIntro . call ( self , targetElm ) ;
603
608
}
609
+ //check if any callback is defined
610
+ if ( self . _introExitCallback != undefined ) {
611
+ self . _introExitCallback . call ( self ) ;
612
+ }
604
613
} ;
605
614
606
615
setTimeout ( function ( ) {
You can’t perform that action at this time.
0 commit comments