From a68a7b5ca1a87b7dc1ea4c3bd15117b514d14f8d Mon Sep 17 00:00:00 2001 From: Lorenzo Giuliani Date: Fri, 5 Oct 2012 14:45:47 +0200 Subject: [PATCH] added a simple callback on change if using the public method shower.go() --- scripts/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/script.js b/scripts/script.js index b1ab6c7..00e2c39 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -118,6 +118,9 @@ window.shower = (function () { if (!_.isListMode()) { _.updateProgress(slideNumber); } + + if (typeof _.onchange == 'function') + _.onchange(slideNumber); } function getContainingSlideId(el) {