summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-04-26 07:52:44 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-04-26 07:52:44 +0200
commit1938355670b6dc9acf29199fb381e51bf1b72a70 (patch)
treeaa0fc2b12aabfcb899f7d4eba8833021d611962a /src
parent5565aacf2187b5747204aea3eea3be44d994904a (diff)
downloadsvg.js-1938355670b6dc9acf29199fb381e51bf1b72a70.tar.gz
svg.js-1938355670b6dc9acf29199fb381e51bf1b72a70.zip
fix transform getter when something is 0. Make sure only needed files are uploaded to npm
Diffstat (limited to 'src')
-rw-r--r--src/modules/optional/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/optional/transform.js b/src/modules/optional/transform.js
index 0d0c7e3..d57c428 100644
--- a/src/modules/optional/transform.js
+++ b/src/modules/optional/transform.js
@@ -55,7 +55,7 @@ export function transform (o, relative) {
// Act as a getter if no object was passed
if (o == null || typeof o === 'string') {
var decomposed = new Matrix(this).decompose()
- return decomposed[o] || decomposed
+ return o == null ? decomposed : decomposed[o]
}
if (!Matrix.isMatrixLike(o)) {