From 1938355670b6dc9acf29199fb381e51bf1b72a70 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 26 Apr 2019 07:52:44 +0200 Subject: fix transform getter when something is 0. Make sure only needed files are uploaded to npm --- src/modules/optional/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) { -- cgit v1.2.3