aboutsummaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar.js')
-rw-r--r--src/sugar.js2
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