ソースを参照

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

Hakim El Hattab 11 年 前
コミット
c2ab30b87e
2 ファイル変更14 行追加3 行削除
  1. 13 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 13 - 2
js/reveal.js

@@ -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

ファイルの差分が大きいため隠しています
+ 1 - 1
js/reveal.min.js


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません