From 0e0a4ec6e6e5996c6619ec6ff5452c3017e1ca27 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 5 Jan 2015 09:51:36 +0100 Subject: [PATCH] avoid repetition --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 4f44c5f..46b92b5 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2793,7 +2793,7 @@ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ); // The number of past and total slides - var totalCount = dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ).length; + var totalCount = getTotalSlides(); var pastCount = 0; // Step through all slides and count the past ones