From ec119e79a7708931267b41d672e6022861fceeb5 Mon Sep 17 00:00:00 2001 From: Alex Batista Date: Tue, 29 Sep 2015 21:09:41 -0300 Subject: [PATCH] UPDATED - Improvement on spaces and indentation --- js/reveal.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index 9d4b344..421fa2c 100644 --- a/js/reveal.js +++ b/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