]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#t595] lint fix
authorScottDowne <sdowne@learn.senecac.on.ca>
Thu, 23 Jun 2011 18:47:05 +0000 (14:47 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Thu, 23 Jun 2011 18:47:05 +0000 (14:47 -0400)
popcorn.js

index a5968c19889c0f221a6ad0ce5e984b80c16e48c3..93a209ba516b1939754829dd10e559cf4541d017 100644 (file)
       // join the two arrays together
       options.compose = options.compose.concat( options.effect );
 
-      for ( var i = 0, l = options.compose.length; i < l; i++ ) {
+      //for ( var i = 0, l = options.compose.length; i < l; i++ ) {
+      options.compose.forEach(function( composeOption ) {
 
         // if the requested compose is garbage, throw it away
-        compose = Popcorn.compositions[ options.compose[ i ] ] || {};
+        compose = Popcorn.compositions[ composeOption ] || {};
 
         // extends previous functions with compose function
         methods.forEach(function( method ) {
 
           natives[ method ] = combineFn( natives[ method ], compose[ method ] );
         });
-      }
+      });
 
       //  Ensure a manifest object, an empty object is a sufficient fallback
       options._natives.manifest = manifest;