use new fragment nav method from slide()
This commit is contained in:
		
							parent
							
								
									b4e2c97d0c
								
							
						
					
					
						commit
						8550186afc
					
				
					 2 changed files with 5 additions and 14 deletions
				
			
		
							
								
								
									
										13
									
								
								js/reveal.js
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								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 } ); | ||||
| 				} | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										6
									
								
								js/reveal.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								js/reveal.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue