]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#700] Remove unnec. comments
authorRick Waldron <waldron.rick@gmail.com>
Tue, 6 Sep 2011 20:20:20 +0000 (16:20 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 6 Sep 2011 20:20:20 +0000 (16:20 -0400)
test/popcorn.unit.setup.js

index 4f2394846680c6458fcaad88eaab9a3787bf6500..268c61f9d338e2d9187e7c31359ee1d8d9bb680f 100644 (file)
@@ -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);