From f5dd3ee91401c9d3765e5ec1dde70fba8665eef1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 5 Feb 2014 01:52:37 +0400 Subject: [PATCH] resting old animateElementTo(..)... Signed-off-by: Alex A. Naanou --- lib/jli.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/jli.js b/lib/jli.js index 52fb7a2..a340f09 100755 --- a/lib/jli.js +++ b/lib/jli.js @@ -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...