avoid repetition

This commit is contained in:
Hakim El Hattab 2015-01-05 09:51:36 +01:00
parent 9c3a7b49d0
commit 0e0a4ec6e6

View file

@ -2793,7 +2793,7 @@
var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ); var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
// The number of past and total slides // The number of past and total slides
var totalCount = dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ).length; var totalCount = getTotalSlides();
var pastCount = 0; var pastCount = 0;
// Step through all slides and count the past ones // Step through all slides and count the past ones