aboutsummaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar.js')
-rw-r--r--src/sugar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js
index 0685a25..6e1bbf4 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.search ? this.search('x') : this.x()) + x)
+ return this.x((this instanceof SVG.FX ? 0 : this.x()) + x, true)
}
// Relative move over y axis
, dy: function(y) {
- return this.y((this.search ? this.search('x') : this.y()) + y)
+ return this.y((this instanceof SVG.FX ? 0 : this.y()) + y, true)
}
// Relative move over x and y axes
, dmove: function(x, y) {