* This will show how many people "like" Seneca College's Facebook page, and show their profile pictures
*/
- var ranOnce = false, idx = 0;
+ var ranOnce = false;
Popcorn.plugin( "facebook" , {
manifest: {
_setup: function( options ) {
var target = document.getElementById( options.target ),
- _type = options.type,
- facebookdiv;
-
- /*
- // Ensure target container chosen by user exists
- if ( !target && Popcorn.plugin.debug ) {
- throw new Error( "Facebook target container doesn't exist" );
- }
- target && target.appendChild( containerDiv );
- */
-
+ _type = options.type;
+
// facebook script requires a div named fb-root
if ( !document.getElementById( "fb-root" ) ) {
var fbRoot = document.createElement( "div" );
},
_teardown: function( options ){
var target = document.getElementById( options.target );
- target && target.removeChild( options._facebookdiv );
+ target && target.removeChild( options._container );
}
});
-})( Popcorn, this );
\ No newline at end of file
+})( Popcorn, this );
})
.volume( 0 )
.play();
-
+
setupId = popped.getLastTrackEventId();
ok ( document.getElementById( "activitydiv" ), "activitydiv exists on the page" );
popped.exec( 5, function() {
ok( document.getElementById( "facepilediv" ).innerHTML, "Facepilediv is not empty at 0:05 (expected)" );
plus();
-
+
popped.pause().removeTrackEvent( setupId );
- ok( !facepilediv, "removed facebook social plugin was properly destroyed" );
+ ok( !document.getElementById( "facepilediv" ).innerHTML, "removed facebook social plugin was properly destroyed" );
plus();
});
-
+
});