summaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-06 19:43:17 +0000
committerwout <wout@impinc.co.uk>2013-03-06 19:43:17 +0000
commit5e3ff072994d3d9b224c62d71ca1331951249bac (patch)
tree9bb8b5af1ca4372fcf0c03b0444530fefee20735 /src/sugar.js
parent6a8a3fee7dbfc9a9f4a36dc5877f955f5743a4ac (diff)
downloadsvg.js-5e3ff072994d3d9b224c62d71ca1331951249bac.tar.gz
svg.js-5e3ff072994d3d9b224c62d71ca1331951249bac.zip
Reworked color management
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