diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-12-16 01:54:53 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-12-16 01:54:53 +0100 |
commit | 5cb2010246154e3a5dfa753f14fb081cef5c2579 (patch) | |
tree | 856e0e2f59b4d7b492df8719c252b031c8a25902 /src/sugar.js | |
parent | 3260b94a26d033112ea9d027faa23152cf24c1ea (diff) | |
download | svg.js-5cb2010246154e3a5dfa753f14fb081cef5c2579.tar.gz svg.js-5cb2010246154e3a5dfa753f14fb081cef5c2579.zip |
added all fx methods, styles and attrs
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js index 2a0404c..0685a25 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -61,11 +61,11 @@ SVG.extend(SVG.Element, SVG.FX, { } // Relative move over x axis , dx: function(x) { - return this.x((this.target || this).x() + x) + return this.x((this.search ? this.search('x') : this.x()) + x) } // Relative move over y axis , dy: function(y) { - return this.y((this.target || this).y() + y) + return this.y((this.search ? this.search('x') : this.y()) + y) } // Relative move over x and y axes , dmove: function(x, y) { |