From a06c84a0b365a34587e5807290762bf997f5ab10 Mon Sep 17 00:00:00 2001 From: miripiruni Date: Sun, 20 Jan 2013 16:08:48 +0400 Subject: [PATCH] Rename: innerNavigationCompleted -> isInnerNavCompleted --- shower.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/shower.js b/shower.js index 20c9a47..6825b5b 100755 --- a/shower.js +++ b/shower.js @@ -595,7 +595,7 @@ window.shower = (function(window, document, undefined) { if (e.altKey || e.ctrlKey || e.metaKey) { return; } var currentSlideNumber = shower.getCurrentSlideNumber(), - innerNavigationCompleted = true; + isInnerNavCompleted = true; switch (e.which) { case 116: // F5 @@ -644,20 +644,19 @@ window.shower = (function(window, document, undefined) { if (shower.isSlideMode()) { // Inner navigation is "completed" if current slide have // no inner navigation or inner navigation is fully shown - innerNavigationCompleted = !slideList[currentSlideNumber].hasInnerNavigation || + isInnerNavCompleted = !slideList[currentSlideNumber].hasInnerNavigation || -1 === shower.increaseInnerNavigation(currentSlideNumber); } else { // Also inner navigation is always "completed" if we are in // list mode - innerNavigationCompleted = true; + isInnerNavCompleted = true; } - // NOTE: First of all check if there is no current slide + if ( - -1 === currentSlideNumber || innerNavigationCompleted + -1 === currentSlideNumber || isInnerNavCompleted ) { currentSlideNumber++; shower.go(currentSlideNumber); - // We must run slideshow only in full mode if (shower.isSlideMode()) { shower.runInnerNavigation(currentSlideNumber); }