Skip to content

Instantly share code, notes, and snippets.

@clu3
Created July 3, 2013 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clu3/5914580 to your computer and use it in GitHub Desktop.
Save clu3/5914580 to your computer and use it in GitHub Desktop.
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