some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-05 02:49:37 +04:00
parent 949e053d86
commit fce6ff90f2

View File

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