From cb4fe35bac514fcacf98b76f094071b9d50a722b Mon Sep 17 00:00:00 2001 From: fabiano Date: Fri, 9 May 2014 15:58:56 -0300 Subject: fixed a problem in the function isFirstSlide when visiting a vertical slide and then going back to the first slide, the function would return false. made it more fail proof by checking the indices directly. --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index da43738..3bd75a2 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3902,7 +3902,7 @@ // Returns true if we're currently on the first slide isFirstSlide: function() { - return document.querySelector( SLIDES_SELECTOR + '.past' ) == null ? true : false; + return ( indexh == 0 && indexv == 0 ); }, // Returns true if we're currently on the last slide -- cgit v1.2.3 From ffecac6df30b00cf35588a00299b610b76a953f2 Mon Sep 17 00:00:00 2001 From: fabiano Date: Fri, 9 May 2014 16:11:04 -0300 Subject: == --> === --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index 3bd75a2..dd2f990 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3902,7 +3902,7 @@ // Returns true if we're currently on the first slide isFirstSlide: function() { - return ( indexh == 0 && indexv == 0 ); + return ( indexh === 0 && indexv === 0 ); }, // Returns true if we're currently on the last slide -- cgit v1.2.3