1
0
Fork 0

UPDATED - Improvement on spaces and indentation

This commit is contained in:
Alex Batista 2015-09-29 21:09:41 -03:00
parent c1cb328e19
commit ec119e79a7
1 changed files with 4 additions and 6 deletions

View File

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