]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixed Styling Issues
authorMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 21:08:03 +0000 (17:08 -0400)
committerMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 21:08:03 +0000 (17:08 -0400)
plugins/facebook/popcorn.facebook.js
plugins/facebook/popcorn.facebook.unit.js

index ebafbf82ab43133818fdad363d96b6236e3ae3b3..57e2f37ec3afce529b676a5bb90a06eff22085a7 100755 (executable)
       }
 
 
-      options._container = document.createElement( "fb:" +_type );
+      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.
index 5325993c6855900e345ac69710b87f3fc6d8a970..9201ab2b4226be6bb5d158eac1ea8c1577b361b0 100755 (executable)
@@ -23,22 +23,22 @@ test( "Popcorn Facebook Plugin", function () {
   plus();
 
   popped.facebook({
-        site: "http://popcornjs.org/",
-        type: "ACTIVITY",
-        target: "activitydiv",
-        start: 3,
-        end: 6
-      })
-      .facebook({
-        href: "http://www.facebook.com/senecacollege",
-        type: "FACEPILE",
-        target: "facepilediv",
-        start: 4,
-        end: 6,
-        width: 300
-      })
-    .volume( 0 )
-    .play();
+    site: "http://popcornjs.org/",
+    type: "ACTIVITY",
+    target: "activitydiv",
+    start: 3,
+    end: 6
+  })
+  .facebook({
+    href: "http://www.facebook.com/senecacollege",
+    type: "FACEPILE",
+    target: "facepilediv",
+    start: 4,
+    end: 6,
+    width: 300
+  })
+  .volume( 0 )
+  .play();
 
 
   ok ( document.getElementById( "activitydiv" ), "activitydiv exists on the page" );
@@ -78,10 +78,10 @@ test( "Test Initialized Facebook Blocks", function () {
   // Tests for thrown Error on invalid plugin type
   try {
     pop.facebook({
-        target: "likediv",
-        type: "asdasd",
-        start: 1,
-        end: 6
+      target: "likediv",
+      type: "asdasd",
+      start: 1,
+      end: 6
     });
   } catch( e ) {
     ok( true, "Facebook plugin type was invalid." );