diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-01 23:57:02 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-01 23:57:02 +0200 |
commit | e059cf7f0a9b6325baad21c4fb47f0ec632088ca (patch) | |
tree | 3f19b6ef800655095853256e5ecb4d8e877c5185 /src/color.js | |
parent | b006c02b219fea7af04b764ab2fd6c4b55a8c4ac (diff) | |
download | svg.js-e059cf7f0a9b6325baad21c4fb47f0ec632088ca.tar.gz svg.js-e059cf7f0a9b6325baad21c4fb47f0ec632088ca.zip |
fix parser error (#471) and small bug in SVG.Color with new fx
Diffstat (limited to 'src/color.js')
-rw-r--r-- | src/color.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/color.js b/src/color.js index 1564bba..25f41d6 100644 --- a/src/color.js +++ b/src/color.js @@ -7,6 +7,8 @@ SVG.Color = function(color) { this.g = 0 this.b = 0 + if(!color) return + // parse color if (typeof color === 'string') { if (SVG.regex.isRgb.test(color)) { |