aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-08 10:53:24 +0100
committerwout <wout@impinc.co.uk>2013-01-08 10:53:24 +0100
commit3bbd30e69a9fdfc9c77f819028d971efe90f9a34 (patch)
tree208d53fc35ea4f3fd5069932fcdea89a841e1bbd /src
parent87cef2ab192bbdec602e838ff9d21d2846ecdcd4 (diff)
downloadsvg.js-3bbd30e69a9fdfc9c77f819028d971efe90f9a34.tar.gz
svg.js-3bbd30e69a9fdfc9c77f819028d971efe90f9a34.zip
Fix in fx module for durations under 10 ms
Diffstat (limited to 'src')
-rw-r--r--src/fx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index 692c346..845468c 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 || 1000;
+ duration = duration == null ? 1000 : duration < 10 ? 10 : duration;
ease = ease || '<>';
var akeys, tkeys, tvalues,