diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2024-06-18 11:01:45 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2024-06-18 11:01:45 +0200 |
commit | a1c23d3838f6551f01894be40c8894398467c541 (patch) | |
tree | deb1ff485284dd0040dc50aec4f8df2c129bc22c /src/modules/core/attr.js | |
parent | 3b47e461f0773e619619f1bc838234fdd9920d90 (diff) | |
download | svg.js-a1c23d3838f6551f01894be40c8894398467c541.tar.gz svg.js-a1c23d3838f6551f01894be40c8894398467c541.zip |
update dependencies
Diffstat (limited to 'src/modules/core/attr.js')
-rw-r--r-- | src/modules/core/attr.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/core/attr.js b/src/modules/core/attr.js index 36b331b..8875c41 100644 --- a/src/modules/core/attr.js +++ b/src/modules/core/attr.js @@ -52,8 +52,8 @@ export default function attr(attr, val, ns) { return val == null ? defaults[attr] : isNumber.test(val) - ? parseFloat(val) - : val + ? parseFloat(val) + : val } else { // Loop through hooks and execute them to convert value val = hooks.reduce((_val, hook) => { |