summaryrefslogtreecommitdiffstats
path: root/src/attr.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/attr.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/attr.js')
-rw-r--r--src/attr.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/attr.js b/src/attr.js
index 2d9e8f9..9340981 100644
--- a/src/attr.js
+++ b/src/attr.js
@@ -1,13 +1,6 @@
SVG.extend(SVG.Element, {
// Set svg element attribute
attr: function(a, v, n) {
- // ensure right tranform attribute
- if (a == 'transform')
- if(this instanceof SVG.Pattern)
- a = 'patternTransform'
- else if(this instanceof SVG.Gradient)
- a = 'gradientTransform'
-
// act as full getter
if (a == null) {
// get an object of attributes