From f6113bc0d4e2c5af059811f1feab46645f963fab Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Fri, 22 Jul 2011 14:11:58 -0400 Subject: [PATCH] modified buildFrameRunner so that it wont run onFrame after onEnd --- plugins/code/popcorn.code.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/code/popcorn.code.js b/plugins/code/popcorn.code.js index a871a35..52f7f3a 100755 --- a/plugins/code/popcorn.code.js +++ b/plugins/code/popcorn.code.js @@ -78,10 +78,8 @@ return function( f, options ) { var _f = function() { - f(); - if ( running ) { - runner( _f ); - } + running && f(); + running && runner( _f ); }; _f(); -- 2.43.0