]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#423] whitespace fixes
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 27 Sep 2011 20:28:37 +0000 (16:28 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 27 Sep 2011 20:28:37 +0000 (16:28 -0400)
players/youtube/popcorn.youtube.js
popcorn.js

index d74d370e03a61d0f288d80d9cd30def40bed04d4..7b7008056326de8b15e941935e6857682e25358a 100755 (executable)
@@ -194,7 +194,7 @@ Popcorn.player( "youtube", {
         media.paused && media.dispatchEvent( 'loadeddata' );
       };
 
-      options.controls = +options.controls === 0 || +options.controls === 1 ? options.controls : 1; 
+      options.controls = +options.controls === 0 || +options.controls === 1 ? options.controls : 1;
       options.annotations = +options.annotations === 1 || +options.annotations === 3 ? options.annotations : 1;
 
       flashvars = {
@@ -214,7 +214,7 @@ Popcorn.player( "youtube", {
 
       src = /^.*[\/=](.{11})/.exec( media.src )[ 1 ];
 
-      swfobject.embedSWF( "http://www.youtube.com/e/" + src + "?enablejsapi=1&playerapiid=" + container.id + "&version=3", 
+      swfobject.embedSWF( "http://www.youtube.com/e/" + src + "?enablejsapi=1&playerapiid=" + container.id + "&version=3",
                           container.id, media.offsetWidth, media.offsetHeight, "8", null,
                           flashvars, params, attributes );
     };
index 39f6c2156536f141815e01b817a4df7413160251..dcee995ada3058475d7b1118ef45460ce3bb7447 100644 (file)
 
           events[ evtName ] = [];
         }
-        
+
         events[ evtName ].push( fn );
         return fn;
       };
-        
+
       // Can take event object or simple string
       basePlayer.dispatchEvent = function( oEvent ) {
 
             self = this,
             eventInterface,
             eventName = oEvent.type;
-            
+
         // A string was passed, create event object
         if ( !eventName ) {
 
           eventName = oEvent;
           eventInterface  = Popcorn.events.getInterface( eventName );
-          
+
           if ( eventInterface ) {
 
             evt = document.createEvent( eventInterface );
             evt.initEvent( eventName, true, true, window, 1 );
           }
         }
-        
+
         Popcorn.forEach( events[ eventName ], function( val ) {
 
           val.call( self, evt, self );