aboutsummaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-11 16:13:04 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-11 16:13:04 +0200
commitebf3dc52374159ebb64663a842f5704237934401 (patch)
treed5b5ee4c5c105864ef980d7b2bd59b517fc5ac5b /src/pattern.js
parent0ea34722395d94ce020075caa78b7aec7eb75621 (diff)
downloadsvg.js-ebf3dc52374159ebb64663a842f5704237934401.tar.gz
svg.js-ebf3dc52374159ebb64663a842f5704237934401.zip
moved special handling of pattern/gradient transform to the corresponding class
Diffstat (limited to 'src/pattern.js')
-rw-r--r--src/pattern.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pattern.js b/src/pattern.js
index 2a5ead2..6bd3f1a 100644
--- a/src/pattern.js
+++ b/src/pattern.js
@@ -26,6 +26,12 @@ SVG.Pattern = SVG.invent({
, toString: function() {
return this.fill()
}
+ // custom attr to handle transform
+ , attr: function(a, b, c) {
+ if(a == 'transform') a = 'patternTransform'
+ return SVG.Container.prototype.attr.call(this, a, b, c)
+ }
+
}
// Add parent method