aboutsummaryrefslogtreecommitdiffstats
path: root/src/matrix.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrix.js')
-rw-r--r--src/matrix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/matrix.js b/src/matrix.js
index d1757f3..cbd053f 100644
--- a/src/matrix.js
+++ b/src/matrix.js
@@ -15,7 +15,7 @@ SVG.Matrix = SVG.invent({
// merge source
for (i = abcdef.length - 1; i >= 0; i--)
- this[abcdef[i]] = typeof source[abcdef[i]] === 'number' ?
+ this[abcdef[i]] = source && typeof source[abcdef[i]] === 'number' ?
source[abcdef[i]] : base[abcdef[i]]
}