pablof7z/chardin.js

I cannot start chardin back on, from inside the stop event

Closed this issue · 1 comments

First of all, Great work. This looks way cooler than introJS.
To my issue, I was hoping to create a walkthrough, using Chardin, so, I'm changing the data-intro using JQuery and trying to start and stop Chardin in a linear fashion. But it seems like we cannot restart Chardin again from inside the stop event, like as follows

$('body').on('chardinJs:stop', function () {
if (sessionStorage.getItem("ChardinTest") == '0') {
$('.switchChardin').removeAttr("data-intro");
$('.switchChardin').removeAttr("data-position");
$('.bordercust1').removeAttr("data-intro");
$('.bordercust1').removeAttr("data-position");

            $('body').chardinJs('start');
        }
    });

the new release has the ability to sequentially step through elements. there is a toggle function that should stop/start the lib but that's now unnecessary for you to use.