aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient.js')
-rw-r--r--src/gradient.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gradient.js b/src/gradient.js
index 2c69fd1..45816c7 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -35,6 +35,11 @@ SVG.Gradient = SVG.invent({
, toString: function() {
return this.fill()
}
+ // custom attr to handle transform
+ , attr: function(a, b, c) {console.log('hallo')
+ if(a == 'transform') a = 'gradientTransform'
+ return SVG.Container.prototype.attr.call(this, a, b, c)
+ }
}
// Add parent method