File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 654
654
window . scrollBy ( 0 , bottom + 100 ) ; // 70px + 30px padding from edge to look nice
655
655
}
656
656
}
657
+
658
+ if ( typeof ( this . _introAfterChangeCallback ) !== 'undefined' ) {
659
+ this . _introAfterChangeCallback . call ( this , targetElement . element ) ;
660
+ }
657
661
}
658
662
659
663
/**
886
890
}
887
891
return this ;
888
892
} ,
893
+ onafterchange : function ( providedCallback ) {
894
+ if ( typeof ( providedCallback ) === 'function' ) {
895
+ this . _introAfterChangeCallback = providedCallback ;
896
+ } else {
897
+ throw new Error ( 'Provided callback for onafterchange was not a function' ) ;
898
+ }
899
+ return this ;
900
+ } ,
889
901
oncomplete : function ( providedCallback ) {
890
902
if ( typeof ( providedCallback ) === 'function' ) {
891
903
this . _introCompleteCallback = providedCallback ;
You can’t perform that action at this time.
0 commit comments