File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1259
1259
self . _introCompleteCallback . call ( self ) ;
1260
1260
}
1261
1261
1262
+
1263
+ if ( self . _introItems . length - 1 != self . _currentStep && typeof ( self . _introExitCallback ) === 'function' ) {
1264
+ self . _introExitCallback . call ( self ) ;
1265
+ }
1266
+
1267
+ self . _introSkipCallback . call ( self ) ;
1262
1268
_exitIntro . call ( self , self . _targetElement ) ;
1263
1269
} ;
1264
1270
2465
2471
}
2466
2472
return this ;
2467
2473
} ,
2474
+ onskip : function ( providedCallback ) {
2475
+ if ( typeof ( providedCallback ) === 'function' ) {
2476
+ this . _introSkipCallback = providedCallback ;
2477
+ } else {
2478
+ throw new Error ( 'Provided callback for onskip was not a function.' ) ;
2479
+ }
2480
+ return this ;
2481
+ } ,
2468
2482
onbeforeexit : function ( providedCallback ) {
2469
2483
if ( typeof ( providedCallback ) === 'function' ) {
2470
2484
this . _introBeforeExitCallback = providedCallback ;
You can’t perform that action at this time.
0 commit comments