From: Christopher De Cairos Date: Fri, 22 Jul 2011 18:11:58 +0000 (-0400) Subject: modified buildFrameRunner so that it wont run onFrame after onEnd X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=refs%2Fheads%2Ft645;p=popcorn-js.git modified buildFrameRunner so that it wont run onFrame after onEnd --- 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();