diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-10 14:57:00 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-10 14:57:00 +0100 |
commit | 3409a2150705f679238300c56c05ea144e9ad7bd (patch) | |
tree | fbe8d57ca2ba41f46ae99b4f23a8193990205300 /src/helpers.js | |
parent | c4d93783496e9a3e67c157d63c4a94dc654120bf (diff) | |
download | svg.js-3409a2150705f679238300c56c05ea144e9ad7bd.tar.gz svg.js-3409a2150705f679238300c56c05ea144e9ad7bd.zip |
update specs, fix mistakes, include flatten.js to dist
Diffstat (limited to 'src/helpers.js')
-rw-r--r-- | src/helpers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.js b/src/helpers.js index 4974517..b04c506 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -179,7 +179,7 @@ function fullBox(b) { // Get id from reference string function idFromReference(url) { - var m = url.toString().match(SVG.regex.reference) + var m = (url || '').toString().match(SVG.regex.reference) if (m) return m[1] } |