From 70f405a1effedd351a6cb9caf4436a6e8e64f609 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Tue, 6 Sep 2011 16:20:20 -0400 Subject: [PATCH] [#700] Remove unnec. comments --- test/popcorn.unit.setup.js | 50 +++++++++++++++----------------------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/test/popcorn.unit.setup.js b/test/popcorn.unit.setup.js index 4f23948..268c61f 100644 --- a/test/popcorn.unit.setup.js +++ b/test/popcorn.unit.setup.js @@ -1,26 +1,16 @@ -// suppress console log errors -if ( !window['console'] ) { -// var console = {}, -// methods = 'log debug info warn error exception assert dir dirxml trace group groupEnd groupCollapsed time timeEnd profile profileEnd count clear notifyFirebug getFirebugElement firebug element'.split(' '); -// -// for ( var m in methods ) { -// console[ methods[m] ] = function () { -// //Array.prototype.slice.call(arguments) -// }; -// } - +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, - globalCache: [], + hasRun: false, + globalSize: 0, + globalCache: [], globalDiff: [] }; @@ -31,7 +21,7 @@ if ( !window['console'] ) { for( var p in window ) { if ( p !== "_firebug" ) { size++; - + if ( !Setup.hasRun ) { Setup.globalCache.push( p ); } else { @@ -44,29 +34,29 @@ if ( !window['console'] ) { // account for self size++; - + // Store the number of global properties internally if ( !Setup.globalSize ) { Setup.globalSize = size; } - + if ( !Setup.hasRun ) { Setup.hasRun = true; } - + return size; }; - - - - Setup.eventset = "loadstart progress suspend emptied stalled play pause " + - "loadedmetadata loadeddata waiting playing canplay canplaythrough " + + + + + 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); - - + Setup.events = Setup.eventset.split(/\s+/g); + + + global.Setup = Setup; })(window); -- 2.43.0