ソースを参照

use new fragment nav method from slide()

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

+ 2 - 11
js/reveal.js

@@ -1560,16 +1560,7 @@ var Reveal = (function(){
 
 		// Show fragment, if specified
 		if( typeof f !== 'undefined' ) {
-			var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
-
-			toArray( fragments ).forEach( function( fragment, indexf ) {
-				if( indexf < f ) {
-					fragment.classList.add( 'visible' );
-				}
-				else {
-					fragment.classList.remove( 'visible' );
-				}
-			} );
+			navigateFragment( f );
 		}
 
 		// Dispatch an event if the slide changed
@@ -2335,7 +2326,7 @@ var Reveal = (function(){
 				}
 
 				if( offset > 0 && fragmentsShown.length ) {
-					console.log('hidden');
+					console.log('shown');
 					dispatchEvent( 'fragmentshown', { fragment: fragmentsShown[0], fragments: fragmentsShown } );
 				}
 

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


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