diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-26 14:02:02 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-26 14:02:02 +0100 |
commit | ba63b0157f04d2aa11ff4f2e9ba5bbe3271b9086 (patch) | |
tree | 09cdf4bff8361d0108a6bfe276c6f9bc3382a7bd /src/modules | |
parent | 059058fbac867a270ceef34970f5ac04f58ec913 (diff) | |
download | svg.js-ba63b0157f04d2aa11ff4f2e9ba5bbe3271b9086.tar.gz svg.js-ba63b0157f04d2aa11ff4f2e9ba5bbe3271b9086.zip |
Make color-animation work in all spaces (conversion bugs still there)
- Make sure _d is always defined
- Clean up object before init
- Check space in array
- Use passed space instead of space in object if available
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/optional/sugar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js index 3bd61fb..18f3e78 100644 --- a/src/modules/optional/sugar.js +++ b/src/modules/optional/sugar.js @@ -24,7 +24,7 @@ var sugar = { if (typeof o === 'undefined') { return this.attr(m) } - if (typeof o === 'string' || Color.isRgb(o) || (o instanceof Element)) { + if (typeof o === 'string' || o instanceof Color || Color.isRgb(o) || (o instanceof Element)) { this.attr(m, o) } else { // set all attributes from sugar.fill and sugar.stroke list |