From b242012a13eb9a4c0484e6c716f3d4969c4fb685 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Thu, 23 Jun 2011 14:47:05 -0400 Subject: [PATCH] [#t595] lint fix --- popcorn.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.43.0