Merge branch 'fix-isFirstSlide' of https://github.com/fabianorosas/reveal.js into dev

This commit is contained in:
Hakim El Hattab
2014-05-14 08:50:28 +02:00
2 changed files with 16 additions and 2 deletions

View File

@ -3909,7 +3909,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