diff options
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/SVGNumber.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/types/SVGNumber.js b/src/types/SVGNumber.js index 4ead46b..fedb00e 100644 --- a/src/types/SVGNumber.js +++ b/src/types/SVGNumber.js @@ -89,8 +89,7 @@ export default class SVGNumber { return new SVGNumber(this / number, this.unit || number.unit) } - unit (unit) { - if (unit == null) return this.unit + convert (unit) { return new SVGNumber(this.value, unit) } } |