]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#734]NOW IT SHOULD BE ALL FIXED STYLE STUFF
authorMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 20:59:17 +0000 (16:59 -0400)
committerMatthew Schranz <schranz.m@gmail.com>
Tue, 27 Sep 2011 20:59:17 +0000 (16:59 -0400)
plugins/facebook/popcorn.facebook.js
plugins/facebook/popcorn.facebook.unit.js

index 64e68e73a5b34a97977c746bff649fa6885dff6f..ebafbf82ab43133818fdad363d96b6236e3ae3b3 100755 (executable)
@@ -1,6 +1,6 @@
 //PLUGIN: facebook
 
-(function(Popcorn, global ) {
+(function( Popcorn, global ) {
 /**
   * Facebook Popcorn plug-in
   * Places Facebook's "social plugins" inside a div ( http://developers.facebook.com/docs/plugins/ )
       _type = _type.toLowerCase();
 
       var validType = function( type ) {
-        return ( ["like", "like-box", "activity", "facepile", "live-stream", "send"].indexOf( type ) > -1 );
+        return ( [ "like", "like-box", "activity", "facepile", "live-stream", "send" ].indexOf( type ) > -1 );
       };
 
       // Checks if type is valid
index f6cf09acc3f0ebe974f6924fc8fcc28f53ac2594..5325993c6855900e345ac69710b87f3fc6d8a970 100755 (executable)
@@ -1,6 +1,6 @@
-test("Popcorn Facebook Plugin", function () {
+test( "Popcorn Facebook Plugin", function () {
 
-  var popped = Popcorn("#video"),
+  var popped = Popcorn( "#video" ),
       expects = 5,
       count = 0,
       interval,
@@ -23,11 +23,11 @@ test("Popcorn Facebook Plugin", function () {
   plus();
 
   popped.facebook({
-        site   : "http://popcornjs.org/",
-        type   : "ACTIVITY",
-        target : "activitydiv",
-        start  : 3,
-        end    : 6
+        site: "http://popcornjs.org/",
+        type: "ACTIVITY",
+        target: "activitydiv",
+        start: 3,
+        end: 6
       })
       .facebook({
         href: "http://www.facebook.com/senecacollege",
@@ -41,7 +41,7 @@ test("Popcorn Facebook Plugin", function () {
     .play();
 
 
-  ok (document.getElementById('activitydiv'), "activitydiv exists on the page" );
+  ok ( document.getElementById( "activitydiv" ), "activitydiv exists on the page" );
   plus();
   ok( document.getElementById( "facepilediv" ), "facepilediv exists on the page" );
   plus();
@@ -80,8 +80,8 @@ test( "Test Initialized Facebook Blocks", function () {
     pop.facebook({
         target: "likediv",
         type: "asdasd",
-        start : 1,
-        end   : 6
+        start: 1,
+        end: 6
     });
   } catch( e ) {
     ok( true, "Facebook plugin type was invalid." );