Commit a68a7b5c authored by Lorenzo Giuliani's avatar Lorenzo Giuliani

added a simple callback on change if using the public method shower.go()

parent 786b12ed
...@@ -118,6 +118,9 @@ window.shower = (function () { ...@@ -118,6 +118,9 @@ window.shower = (function () {
if (!_.isListMode()) { if (!_.isListMode()) {
_.updateProgress(slideNumber); _.updateProgress(slideNumber);
} }
if (typeof _.onchange == 'function')
_.onchange(slideNumber);
} }
function getContainingSlideId(el) { function getContainingSlideId(el) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment