bootstrap-tour
bootstrap-tour copied to clipboard
onStart method never invoked
Hi,
I am using bootstrat-tour to present the feature tour of my app. Here is a sample code.
var tour = new Tour({
backdrop: true,
steps: tour_steps,
onStart: function(tour){
console.log("tour started")
},
onEnd: function(tour) {
tour.setCurrentStep(0)
window.localStorage.tour_start_time = null
}
});
tour.init();
tour.start(true);
But when the tour starts, the "tour started" is not logged. However onEnd functions properly. Should not the onStart callback be invoked when the tour starts?