]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
modified buildFrameRunner so that it wont run onFrame after onEnd t645
authorChristopher De Cairos <chris.decairos@gmail.com>
Fri, 22 Jul 2011 18:11:58 +0000 (14:11 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Fri, 22 Jul 2011 18:11:58 +0000 (14:11 -0400)
plugins/code/popcorn.code.js

index a871a3505c0a6d99d150cc61a275cdc45d0b09dd..52f7f3acac8c23f7e55a14cd704a7f48640b3831 100755 (executable)
         return function( f, options ) {
     
           var _f = function() {
-            f();
-            if ( running ) {
-              runner( _f );
-            }
+            running && f();
+            running && runner( _f );
           };
     
           _f();