diff options
author | wout <wout@impinc.co.uk> | 2013-06-23 15:20:16 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-06-23 15:20:16 +0100 |
commit | 9841728efbe16219a1c412951841a06ee98ff6ec (patch) | |
tree | a5375c909e053893921d19fa43289d405bd459ab /src | |
parent | a72b8a7afb609b9a76c494d9123d78e5c40962bf (diff) | |
download | svg.js-9841728efbe16219a1c412951841a06ee98ff6ec.tar.gz svg.js-9841728efbe16219a1c412951841a06ee98ff6ec.zip |
Fix in fill() method
Diffstat (limited to 'src')
-rw-r--r-- | src/sugar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js index 9630b3d..57682e8 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -15,9 +15,9 @@ var _colorPrefix = function(type, attr) { extension[method] = function(o) { var indexOf - if (typeof o == 'string' || SVG.Color.isRgb(o)) + if (typeof o == 'string' || SVG.Color.isRgb(o) || (o && typeof o.fill === 'function')) this.attr(method, o) - + else /* set all attributes from _fillAttr and _strokeAttr list */ for (index = SVG['_' + method].length - 1; index >= 0; index--) |