From dec70426b32ccf3979046e1637174b66bfdd1a8d Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 7 Nov 2018 22:42:38 +0100 Subject: clone() does not insert the clone into the dom anymore, added beziere() and steps() to generate easing functions --- src/modules/core/attr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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 { -- cgit v1.2.3