aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-08 10:56:00 +0100
committerwout <wout@impinc.co.uk>2013-01-08 10:56:00 +0100
commitc4dc580359b80182a9501d10e84f296336753823 (patch)
treede6b5750018c2248f41ff625af96efa49b502f21 /src
parent3bbd30e69a9fdfc9c77f819028d971efe90f9a34 (diff)
downloadsvg.js-c4dc580359b80182a9501d10e84f296336753823.tar.gz
svg.js-c4dc580359b80182a9501d10e84f296336753823.zip
Fix in fx module for very short durations
Diffstat (limited to 'src')
-rw-r--r--src/fx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index 845468c..6e6fc00 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -8,7 +8,7 @@ SVG.extend(SVG.FX, {
// Add animation parameters and start animation
animate: function(duration, ease) {
/* ensure default duration and easing */
- duration = duration == null ? 1000 : duration < 10 ? 10 : duration;
+ duration = duration == null ? 1000 : duration;
ease = ease || '<>';
var akeys, tkeys, tvalues,
@@ -80,7 +80,7 @@ SVG.extend(SVG.FX, {
fx._after ? fx._after.apply(element, [fx]) : fx.stop();
}
- }, 10);
+ }, duration > 10 ? 10 : duration);
return this;
},