-if ( !window["console"] ) {
- jQuery.getScript("https://getfirebug.com/firebug-lite-debug.js");
+if ( !window[ "console" ] ) {
+ jQuery.getScript( "https://getfirebug.com/firebug-lite-debug.js" );
}
-
-(function (global) {
+(function( global ) {
// Store the number of global properties that exist prior to Popcorn API definition
-
var Setup = {
hasRun: false,
globalSize: 0,
Setup.getGlobalSize = function() {
- var size = 0;
+ var size = 0, prop;
- for( var p in window ) {
- if ( p !== "_firebug" ) {
+ for ( prop in window ) {
+ if ( prop !== "_firebug" ) {
size++;
if ( !Setup.hasRun ) {
- Setup.globalCache.push( p );
+ Setup.globalCache.push( prop );
} else {
- if ( Setup.globalCache.indexOf( p ) === -1 ) {
- Setup.globalDiff.push( p );
+ if ( Setup.globalCache.indexOf( prop ) === -1 ) {
+ Setup.globalDiff.push( prop );
}
}
}
return size;
};
- Setup.eventset = "loadstart progress suspend emptied stalled play pause " +
- "loadedmetadata loadeddata waiting playing canplay canplaythrough " +
- "seeking seeked timeupdate ended ratechange durationchange volumechange";
+ Setup.eventset = "loadstart progress suspend emptied stalled play pause " +
+ "loadedmetadata loadeddata waiting playing canplay canplaythrough " +
+ "seeking seeked timeupdate ended ratechange durationchange volumechange";
Setup.events = Setup.eventset.split(/\s+/g);
global.Setup = Setup;
-})(window);
-
-
-Setup.getGlobalSize();
+})( window );
+Setup.getGlobalSize();
\ No newline at end of file