fixes bug where the .present class remained on previous slide (closes #88)
This commit is contained in:
parent
e570265a67
commit
e9b874112e
@ -182,6 +182,7 @@ You can change the appearance of the speaker notes by editing the file at `plugi
|
|||||||
- New API method ```Reveal.getPreviousSlide()```
|
- New API method ```Reveal.getPreviousSlide()```
|
||||||
- New API method ```Reveal.getCurrentSlide()```
|
- New API method ```Reveal.getCurrentSlide()```
|
||||||
- New API method ```Reveal.getIndices()```
|
- New API method ```Reveal.getIndices()```
|
||||||
|
- Fixes bug where the ```.present``` class was sometimes left on the previous slide
|
||||||
|
|
||||||
#### 1.4
|
#### 1.4
|
||||||
- Main ```#reveal container``` is now selected via a class instead of ID
|
- Main ```#reveal container``` is now selected via a class instead of ID
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* reveal.js 1.5 r2
|
* reveal.js 1.5 r3
|
||||||
* http://lab.hakim.se/reveal-js
|
* http://lab.hakim.se/reveal-js
|
||||||
* MIT licensed
|
* MIT licensed
|
||||||
*
|
*
|
||||||
@ -731,6 +731,13 @@ var Reveal = (function(){
|
|||||||
// Ensure that the previous slide is never the same as the current
|
// Ensure that the previous slide is never the same as the current
|
||||||
previousSlide = null;
|
previousSlide = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Solves an edge case where the previous slide maintains the
|
||||||
|
// 'present' class when navigating between adjacent vertical
|
||||||
|
// stacks
|
||||||
|
if( previousSlide ) {
|
||||||
|
previousSlide.classList.remove( 'present' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user