mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-28 10:40:07 +00:00
resting old animateElementTo(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e8c2147c13
commit
f5dd3ee914
@ -451,7 +451,7 @@ function animationFrameRunner(func){
|
||||
|
||||
// NOTE: this is exclusive, e.g. all other animations set with this will
|
||||
// be stopped on call...
|
||||
function animateElementTo(elem, to, duration, easing, speed, use_transitions){
|
||||
function animateElementTo2(elem, to, duration, easing, speed, use_transitions){
|
||||
use_transitions = use_transitions != null ?
|
||||
use_transitions
|
||||
: USE_TRANSITIONS_FOR_ANIMATION
|
||||
@ -534,7 +534,7 @@ function animateElementTo(elem, to, duration, easing, speed, use_transitions){
|
||||
}
|
||||
|
||||
|
||||
function stopAnimation(elem){
|
||||
function stopAnimation2(elem){
|
||||
var runner = elem.data('runner')
|
||||
if(runner != null){
|
||||
runner.stop()
|
||||
@ -542,7 +542,6 @@ function stopAnimation(elem){
|
||||
}
|
||||
|
||||
|
||||
/* XXX legacy code...
|
||||
// XXX make this a drop-in replacement for setElementTransform...
|
||||
// XXX cleanup, still flacky...
|
||||
function animateElementTo(elem, to, duration, easing, speed, use_transitions){
|
||||
@ -669,7 +668,6 @@ function stopAnimation(elem){
|
||||
return
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// XXX account for other transitions...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user