Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tweak bootstro._start to add onStart call.
bootstro._start = function(selector)
{
selector = selector || '.bootstro';
$elements = $(selector);
count = $elements.size();
if (count > 0 && $('div.bootstro-backdrop').length === 0)
{
// Prevents multiple copies
$('<div class="bootstro-backdrop"></div>').appendTo('body');
bootstro.bind();
bootstro.go_to(0);
// Add those 2 lines for onStart callback
if (typeof settings.onStart == 'function')
settings.onStart.call(this, {idx : 0});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.