Commit 0e0a4ec6 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

avoid repetition

parent 9c3a7b49
......@@ -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
......
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