diff options
author | wout <wout@impinc.co.uk> | 2013-03-06 19:43:17 +0000 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-06 19:43:17 +0000 |
commit | 5e3ff072994d3d9b224c62d71ca1331951249bac (patch) | |
tree | 9bb8b5af1ca4372fcf0c03b0444530fefee20735 /src/sugar.js | |
parent | 6a8a3fee7dbfc9a9f4a36dc5877f955f5743a4ac (diff) | |
download | svg.js-5e3ff072994d3d9b224c62d71ca1331951249bac.tar.gz svg.js-5e3ff072994d3d9b224c62d71ca1331951249bac.zip |
Reworked color management
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 |