From: Matthew Schranz Date: Tue, 27 Sep 2011 20:59:17 +0000 (-0400) Subject: [#734]NOW IT SHOULD BE ALL FIXED STYLE STUFF X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2c5a77c7ddbc0ce07aa311a03245d055a66dbd6c;p=popcorn-js.git [#734]NOW IT SHOULD BE ALL FIXED STYLE STUFF --- diff --git a/plugins/facebook/popcorn.facebook.js b/plugins/facebook/popcorn.facebook.js index 64e68e7..ebafbf8 100755 --- a/plugins/facebook/popcorn.facebook.js +++ b/plugins/facebook/popcorn.facebook.js @@ -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/ ) @@ -194,7 +194,7 @@ _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 diff --git a/plugins/facebook/popcorn.facebook.unit.js b/plugins/facebook/popcorn.facebook.unit.js index f6cf09a..5325993 100755 --- a/plugins/facebook/popcorn.facebook.unit.js +++ b/plugins/facebook/popcorn.facebook.unit.js @@ -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." );