Commit f65f61be authored by miripiruni's avatar miripiruni

Rename method: shower.runSlideshowIfPresented() to shower.runInnerNavigation()

parent 49b842b3
...@@ -263,7 +263,7 @@ window.shower = (function(window, document, undefined) { ...@@ -263,7 +263,7 @@ window.shower = (function(window, document, undefined) {
shower.updateProgress(currentSlideNumber); shower.updateProgress(currentSlideNumber);
shower.updateCurrentAndPassedSlides(currentSlideNumber); shower.updateCurrentAndPassedSlides(currentSlideNumber);
shower.runSlideshowIfPresented(currentSlideNumber); shower.runInnerNavigation(currentSlideNumber);
if (typeof(callback) === 'function') { if (typeof(callback) === 'function') {
callback(); callback();
...@@ -511,7 +511,7 @@ window.shower = (function(window, document, undefined) { ...@@ -511,7 +511,7 @@ window.shower = (function(window, document, undefined) {
* @param {Number} slideNumber * @param {Number} slideNumber
* @returns {Boolean} * @returns {Boolean}
*/ */
shower.runSlideshowIfPresented = function(slideNumber) { shower.runInnerNavigation = function(slideNumber) {
if ( ! shower._isNumber(slideNumber)) { if ( ! shower._isNumber(slideNumber)) {
throw new Error('Gimme slide number as Number, baby!'); throw new Error('Gimme slide number as Number, baby!');
} }
...@@ -528,7 +528,7 @@ window.shower = (function(window, document, undefined) { ...@@ -528,7 +528,7 @@ window.shower = (function(window, document, undefined) {
timer = setTimeout(function() { timer = setTimeout(function() {
shower.go(slideNumber + 1); shower.go(slideNumber + 1);
shower.runSlideshowIfPresented(slideNumber + 1); shower.runInnerNavigation(slideNumber + 1);
}, },
timing); timing);
} }
...@@ -658,7 +658,7 @@ window.shower = (function(window, document, undefined) { ...@@ -658,7 +658,7 @@ window.shower = (function(window, document, undefined) {
shower.go(currentSlideNumber); shower.go(currentSlideNumber);
// We must run slideshow only in full mode // We must run slideshow only in full mode
if (shower.isSlideMode()) { if (shower.isSlideMode()) {
shower.runSlideshowIfPresented(currentSlideNumber); shower.runInnerNavigation(currentSlideNumber);
} }
} }
break; break;
......
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