Created
July 3, 2013 00:44
-
-
Save clu3/5914580 to your computer and use it in GitHub Desktop.
tweak bootstro._start to add onStart call.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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