replace classList.toggle( ..., force ) as it's broken in ff

This commit is contained in:
Hakim El Hattab 2013-02-27 16:55:14 -05:00
parent 4c57ad918b
commit c2ab30b87e
2 changed files with 15 additions and 4 deletions

View file

@ -354,8 +354,19 @@ var Reveal = (function(){
dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none';
dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none';
dom.wrapper.classList.toggle( 'rtl', config.rtl );
dom.wrapper.classList.toggle( 'center', config.center );
if( config.rtl ) {
dom.wrapper.classList.add( 'rtl' );
}
else {
dom.wrapper.classList.remove( 'rtl' );
}
if( config.center ) {
dom.wrapper.classList.add( 'center' );
}
else {
dom.wrapper.classList.remove( 'center' );
}
if( config.mouseWheel ) {
document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long