From: Matthew Schranz Date: Tue, 27 Sep 2011 21:08:03 +0000 (-0400) Subject: Fixed Styling Issues X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0f3f6684f0b5bbd4932b31a300614e5698ded362;p=popcorn-js.git Fixed Styling Issues --- diff --git a/plugins/facebook/popcorn.facebook.js b/plugins/facebook/popcorn.facebook.js index ebafbf8..57e2f37 100755 --- a/plugins/facebook/popcorn.facebook.js +++ b/plugins/facebook/popcorn.facebook.js @@ -203,7 +203,7 @@ } - 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. diff --git a/plugins/facebook/popcorn.facebook.unit.js b/plugins/facebook/popcorn.facebook.unit.js index 5325993..9201ab2 100755 --- a/plugins/facebook/popcorn.facebook.unit.js +++ b/plugins/facebook/popcorn.facebook.unit.js @@ -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." );