This repository was archived by the owner on Feb 17, 2021. It is now read-only.
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 764
764
if ( initOptions ) {
765
765
this . configure ( initOptions ) ;
766
766
}
767
+ return this ;
767
768
} ;
768
769
769
770
/**
804
805
bubble = getBubble ( ) ;
805
806
bubble . showPrevButton ( opt . showPrevButton , true ) ;
806
807
bubble . showNextButton ( opt . showNextButton , true ) ;
808
+ return this ;
807
809
} ;
808
810
809
811
this . startTour = function ( ) {
839
841
bubble . initAnimate ( ) ;
840
842
}
841
843
this . isActive = true ;
844
+ return this ;
842
845
} ;
843
846
844
847
this . showStep = function ( stepIdx ) {
859
862
cookieVal += ':mp' ;
860
863
}
861
864
utils . setState ( opt . cookieName , cookieVal , 1 ) ;
865
+ return this ;
862
866
} ;
863
867
864
868
this . prevStep = function ( ) {
865
869
if ( currStepNum > 0 ) {
866
870
this . showStep ( -- currStepNum ) ;
867
871
}
872
+ return this ;
868
873
} ;
869
874
870
875
this . nextStep = function ( ) {
874
879
if ( currStepNum < currTour . steps . length - 1 ) {
875
880
this . showStep ( ++ currStepNum ) ;
876
881
}
882
+ return this ;
877
883
} ;
878
884
879
885
/**
890
896
utils . clearState ( opt . cookieName ) ;
891
897
}
892
898
this . isActive = false ;
899
+ return this ;
893
900
} ;
894
901
895
902
/**
965
972
getBubble ( ) . showPrevButton ( opt . showPrevButton , true ) ;
966
973
getBubble ( ) . showNextButton ( opt . showNextButton , true ) ;
967
974
getBubble ( ) . showCloseButton ( opt . showCloseButton , true ) ;
975
+ return this ;
968
976
} ;
969
977
970
978
this . init ( initOptions ) ;
You can’t perform that action at this time.
0 commit comments