}
Popcorn.soundcloud = function( containerId, src, options ) {
- !hasAllDependencies() && loadScripts();
+ !hasAllDependencies() && loadScripts();
return new Popcorn.soundcloud.init( containerId, src, options );
};
};
Popcorn.vimeo = function( mediaId, list, options ) {
- !global.swfobject && Popcorn.getScript( "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" );
+ !global.swfobject && Popcorn.getScript( "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" );
return new Popcorn.vimeo.init( mediaId, list, options );
};
var readyCheck = function() {
- if ( window.google ) {
- google.load( "feeds", "1", {
+ if ( window.google ) {
+ google.load( "feeds", "1", {
- callback: function () {
+ callback: function () {
- dynamicFeedLoad();
+ dynamicFeedLoad();
- }
- });
- } else {
- setTimeout( readyCheck, 10 );
- }
- };
- readyCheck();
+ }
+ });
+ } else {
+ setTimeout( readyCheck, 10 );
+ }
+ };
+ readyCheck();
});
return {
- _setup: function() {
+ _setup: function() {
- // if this is the firest time running the plugins
- // call the function that gets the script
- if (!_mapFired) {
- loadMaps();
- }
+ // if this is the firest time running the plugins
+ // call the function that gets the script
+ if (!_mapFired) {
+ loadMaps();
+ }
- isMapReady();
- },
+ isMapReady();
+ },
/**
* @member webpage