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(){
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...