aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
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 /dist/svg.js
parent87cef2ab192bbdec602e838ff9d21d2846ecdcd4 (diff)
downloadsvg.js-3bbd30e69a9fdfc9c77f819028d971efe90f9a34.tar.gz
svg.js-3bbd30e69a9fdfc9c77f819028d971efe90f9a34.zip
Fix in fx module for durations under 10 ms
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/dist/svg.js b/dist/svg.js
index cca11d1..05cbad8 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.1-69-g50e1e48 - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */
+/* svg.js v0.1-71-g87cef2a - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */
(function() {
this.svg = function(element) {
@@ -12,15 +12,16 @@
xlink: 'http://www.w3.org/1999/xlink',
// Defs id sequence
did: 0,
- // Function for element creation
+ // Method for element creation
create: function(element) {
return document.createElementNS(this.ns, element);
},
- // Function for extending objects
+ // Method for extending objects
extend: function(object, module) {
for (var key in module)
object.prototype[key] = module[key];
}
+
};
SVG.Container = {
@@ -412,7 +413,7 @@
// 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,