diff --git a/lib/jli.js b/lib/jli.js index 1b395ce..253e9c7 100755 --- a/lib/jli.js +++ b/lib/jli.js @@ -420,7 +420,7 @@ function animationFrameRunner(func){ var _tick = function(){ func(Date.now()) - getAnimationFrame(next) + frame = getAnimationFrame(next) } // main user interface... @@ -432,7 +432,7 @@ function animationFrameRunner(func){ // start things up... // NOTE: we are not calling _tick here directly to avoid stray, // off-frame call to func... - getAnimationFrame(next) + frame = getAnimationFrame(next) return this } @@ -454,6 +454,7 @@ function animationFrameRunner(func){ } +/* // NOTE: this is exclusive, e.g. all other animations set with this will // be stopped on call... // XXX for some reason this is slower that animateElementTo(..) on iPad... @@ -575,6 +576,7 @@ function stopAnimation2(elem){ runner.stop() } } +*/ // XXX make this a drop-in replacement for setElementTransform...