diff options
author | wout <wout@impinc.co.uk> | 2013-01-08 10:53:24 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-08 10:53:24 +0100 |
commit | 3bbd30e69a9fdfc9c77f819028d971efe90f9a34 (patch) | |
tree | 208d53fc35ea4f3fd5069932fcdea89a841e1bbd /src | |
parent | 87cef2ab192bbdec602e838ff9d21d2846ecdcd4 (diff) | |
download | svg.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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |