From 70ab0ae80b37c077d3ba799b74bca613d049868c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 25 Mar 2015 14:51:54 +0100 Subject: remove variable definitions #1158 --- js/reveal.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index f5ca21f..8162a17 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2475,13 +2475,10 @@ format = config.slideNumber; } - var totalSlides = getTotalSlides(); - var currentSlide = getSlidePastCount() + 1; - dom.slideNumber.innerHTML = format.replace( /h/g, indexh ) .replace( /v/g, indexv ) - .replace( /c/g, currentSlide ) - .replace( /t/g, totalSlides ); + .replace( /c/g, getSlidePastCount() + 1 ) + .replace( /t/g, getTotalSlides() ); } } -- cgit v1.2.3