Browse Source

UPDATED - Improvement on spaces and indentation

Alex Batista 9 years ago
parent
commit
ec119e79a7
1 changed files with 4 additions and 6 deletions
  1. 4 6
      js/reveal.js

+ 4 - 6
js/reveal.js

@@ -2472,19 +2472,17 @@
 			// Start video playback
 			var currentVideo = currentBackground.querySelector( 'video' );
 			if( currentVideo ) {
-
-				if(currentVideo.readyState >1){
+				if(currentVideo.readyState > 1){
 					currentVideo.currentTime = 0;
 					currentVideo.play();
 				}
 				else{
 					currentVideo.addEventListener("loadeddata", function() {
-					currentVideo.currentTime = 0;
-					currentVideo.play();
-					 currentVideo.removeEventListener("loadeddata",function(){return false});
+						currentVideo.currentTime = 0;
+						currentVideo.play();
+						currentVideo.removeEventListener("loadeddata",function(){return false});
 					});
 				}
-				
 			}
 
 			// Don't transition between identical backgrounds. This