From: ScottDowne Date: Thu, 23 Jun 2011 18:47:05 +0000 (-0400) Subject: [#t595] lint fix X-Git-Tag: v0.7^2~13^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b242012a13eb9a4c0484e6c716f3d4969c4fb685;p=popcorn-js.git [#t595] lint fix --- diff --git a/popcorn.js b/popcorn.js index a5968c1..93a209b 100644 --- a/popcorn.js +++ b/popcorn.js @@ -960,17 +960,18 @@ // 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;