diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 22:42:38 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 22:42:38 +0100 |
commit | dec70426b32ccf3979046e1637174b66bfdd1a8d (patch) | |
tree | 0f64a1803294f55f04d6f4a281845fcd3d1b151a /src/modules | |
parent | 9c3f0e89c9c4d4d999f3b54032202e187ab4ac1c (diff) | |
download | svg.js-dec70426b32ccf3979046e1637174b66bfdd1a8d.tar.gz svg.js-dec70426b32ccf3979046e1637174b66bfdd1a8d.zip |
clone() does not insert the clone into the dom anymore, added beziere() and steps() to generate easing functions
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/core/attr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/core/attr.js b/src/modules/core/attr.js index ed34dc9..7c9e2c1 100644 --- a/src/modules/core/attr.js +++ b/src/modules/core/attr.js @@ -30,7 +30,7 @@ export default function attr (attr, val, ns) { } else if (val == null) { // act as a getter if the first and only argument is not an object val = this.node.getAttribute(attr) - return val == null ? defaults[attr] // FIXME: do we need to return defaults? + return val == null ? defaults[attr] : isNumber.test(val) ? parseFloat(val) : val } else { |