From 164ad3bc6117506c04df8377b90ee29c08ba8783 Mon Sep 17 00:00:00 2001 From: Jon Buckley Date: Thu, 8 Mar 2012 17:20:22 -0500 Subject: [PATCH] Prettyify scott's fixes [#959] --- players/youtube/popcorn.youtube.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/players/youtube/popcorn.youtube.js b/players/youtube/popcorn.youtube.js index 7a21c4a7..37727832 100755 --- a/players/youtube/popcorn.youtube.js +++ b/players/youtube/popcorn.youtube.js @@ -179,7 +179,7 @@ Popcorn.player( "youtube", { if ( options.destroyed ) { - return; + return; } if ( media.paused !== false || options.youtubeObject.getPlayerState() !== 1 ) { @@ -337,8 +337,6 @@ Popcorn.player( "youtube", { }, _teardown: function( options ) { - //options.youtubeObject.stopVideo(); - //console.log( options.youtubeObject ); options.destroyed = true; options.youtubeObject.stopVideo(); options.youtubeObject.clearVideo();