]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#734]Removed Whitespace
authorMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 20:44:44 +0000 (16:44 -0400)
committerMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 20:44:44 +0000 (16:44 -0400)
plugins/facebook/popcorn.facebook.js
plugins/facebook/popcorn.facebook.unit.js

index 50c8977cf33633a06f82284e0aa31c4284e5f82f..64e68e73a5b34a97977c746bff649fa6885dff6f 100755 (executable)
@@ -47,7 +47,7 @@
   */
 
   var ranOnce = false;
-  
+
   Popcorn.plugin( "facebook" , {
     manifest: {
       about: {
           });
         };
       }
-      
-      
+
+
       // Lowercase to make value consistent no matter what user inputs
       _type = _type.toLowerCase();
-      
+
       var validType = function( type ) {
         return ( ["like", "like-box", "activity", "facepile", "live-stream", "send"].indexOf( type ) > -1 );
       };
       if ( !validType( _type ) ) {
         throw new Error( "Facebook plugin type was invalid." );
       }
-      
-      
+
+
       options._container = document.createElement( "fb:" +_type );
-      
+
       // All the the "types" for facebook share largely identical attributes, for loop suffices.
       // ** Credit to Rick Waldron, it's essentially all his code in this function.
       var setOptions = function() {
         var attr = _type === "activity" ? "site" : "href";
 
         options._container.setAttribute( attr, ( options[ attr ] || document.URL ) );
-      
+
         // create an array of Facebook widget attributes
-        var fbAttrs = ( 
-          "width height layout show_faces stream header colorscheme" + 
-          " maxrows border_color recommendations font always_post_to_friends xid" 
+        var fbAttrs = (
+          "width height layout show_faces stream header colorscheme" +
+          " maxrows border_color recommendations font always_post_to_friends xid"
         ).split(" ");
 
         Popcorn.forEach( fbAttrs, function( attr ) {
           }
         });
       };
-      
+
       setOptions();
-      
+
       if ( !target && Popcorn.plugin.debug ) {
         throw new Error( "Facebook target container doesn't exist" );
       }
index 6b59433e359a7b34e64cc8d38df6ad38557e92f7..f6cf09acc3f0ebe974f6924fc8fcc28f53ac2594 100755 (executable)
@@ -1,5 +1,5 @@
 test("Popcorn Facebook Plugin", function () {
-  
+
   var popped = Popcorn("#video"),
       expects = 5,
       count = 0,
@@ -65,16 +65,16 @@ test( "Test Initialized Facebook Blocks", function () {
   Popcorn.plugin.debug = true;
 
   var pop = Popcorn( "#video" );
-  
+
   expect( 2 );
-  
+
   // Tests for thrown Error on emtpy block
   try {
     pop.facebook({});
   } catch( e ) {
     ok( true, "Empty event was caught by debugger" );
   }
-  
+
   // Tests for thrown Error on invalid plugin type
   try {
     pop.facebook({
@@ -84,7 +84,7 @@ test( "Test Initialized Facebook Blocks", function () {
         end   : 6
     });
   } catch( e ) {
-    ok( true, "Facebook plugin type was invalid." );  
-  }  
+    ok( true, "Facebook plugin type was invalid." );
+  }
 });