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

index 32de33db44d11b5d3103afd367d22a2c2e09d894..e69f3db60a1a788fc95286d5f820208a6d75f8f5 100644 (file)
@@ -1,12 +1,10 @@
-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,
@@ -16,17 +14,17 @@ if ( !window["console"] ) {
 
   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 );
           }
         }
       }
@@ -47,16 +45,14 @@ if ( !window["console"] ) {
     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