aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2024-06-18 11:01:45 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2024-06-18 11:01:45 +0200
commita1c23d3838f6551f01894be40c8894398467c541 (patch)
treedeb1ff485284dd0040dc50aec4f8df2c129bc22c /src/modules/core
parent3b47e461f0773e619619f1bc838234fdd9920d90 (diff)
downloadsvg.js-a1c23d3838f6551f01894be40c8894398467c541.tar.gz
svg.js-a1c23d3838f6551f01894be40c8894398467c541.zip
update dependencies
Diffstat (limited to 'src/modules/core')
-rw-r--r--src/modules/core/attr.js4
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) => {