diff options
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar.js b/src/sugar.js index 42883e5..f8a5660 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -15,7 +15,7 @@ var _colorPrefix = function(type, attr) { SVG.Shape.prototype[method] = function(o) { var indexOf - if (typeof o == 'string') + if (typeof o == 'string' || SVG.Color.isRgb(o) || SVG.Color.isHsb(o)) this.attr(method, o) else |