]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
whitespace fix for removePlugin function
authorScottDowne <sdowne@learn.senecac.on.ca>
Mon, 13 Dec 2010 21:44:40 +0000 (16:44 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Mon, 13 Dec 2010 21:44:40 +0000 (16:44 -0500)
popcorn.js

index 13abde8054595730162e0df321ac4fa834e79d9a..acca740225d5132fcd283eb1e0e6d46dadf6fd99 100644 (file)
       this[name] = undef;
   
       // remove plugin reference from registry
-      for (var i = 0, rl = Popcorn.registry.length; i < rl; i++) {
-        if (Popcorn.registry[i].type === name) {
+      for ( var i = 0, rl = Popcorn.registry.length; i < rl; i++ ) {
+        if ( Popcorn.registry[i].type === name ) {
           Popcorn.registry.splice(i, 1);
           break; // plugin found, stop checking
         }
       }
 
       // remove all trackEvents
-      for (var i = 0, sl = byStart.length; i < sl; i++) {
-        if (byStart[i] && byStart[i].natives && byStart[i].natives.type === name) {
-          byStart.splice(i, 1);
+      for ( ar i = 0, sl = byStart.length; i < sl; i++ ) {
+        if ( byStart[i] && byStart[i].natives && byStart[i].natives.type === name ) {
+          byStart.splice( i, 1 );
           i--; sl--; // update for loop if something removed, but keep checking
-          if (this.data.trackEvents.startIndex <= i) {
+          if ( this.data.trackEvents.startIndex <= i ) {
             this.data.trackEvents.startIndex--; // write test for this
           }
         }
       }
-      for (var i = 0, el = byEnd.length; i < el; i++) {
-        if (byEnd[i] && byEnd[i].natives && byEnd[i].natives.type === name) {
-          byEnd.splice(i, 1);
+      for ( var i = 0, el = byEnd.length; i < el; i++ ) {
+        if ( byEnd[i] && byEnd[i].natives && byEnd[i].natives.type === name ) {
+          byEnd.splice( i, 1 );
           i--; el--; // update for loop if something removed, but keep checking
-          if (this.data.trackEvents.endIndex <= i) {
+          if ( this.data.trackEvents.endIndex <= i ) {
             this.data.trackEvents.endIndex--; // write test for this
           }
         }