summaryrefslogtreecommitdiffstats
path: root/src/arrange.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
committerwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
commit67d367e0d74b3287956130da0077e42c6483dd2f (patch)
treebb2d23315e39c89b79cb8c52e7a5db54636e08ad /src/arrange.js
parentff09596144c3fd6770d1dc64178a10c2432396ca (diff)
downloadsvg.js-67d367e0d74b3287956130da0077e42c6483dd2f.tar.gz
svg.js-67d367e0d74b3287956130da0077e42c6483dd2f.zip
Bumped to v0.11
- removed SVG.Wrap on SVG.Polyline, SVG.Polygon and SVG.Path - added delay on SVG.FX module - made x(), y(), cx() and cy() as getters - added SGB.get() method, to get elements by a DOM id - fixed bug in remove() method on container elements - added jasmine test suite to repo
Diffstat (limited to 'src/arrange.js')
-rw-r--r--src/arrange.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arrange.js b/src/arrange.js
index 3ef486f..157c91c 100644
--- a/src/arrange.js
+++ b/src/arrange.js
@@ -20,7 +20,7 @@ SVG.extend(SVG.Element, {
}
// Send given element one step forward
, forward: function() {
- return this.parent.remove(this).put(this, this.position() + 1)
+ return this.parent.removeElement(this).put(this, this.position() + 1)
}
// Send given element one step backward
, backward: function() {
@@ -29,20 +29,20 @@ SVG.extend(SVG.Element, {
var i = this.position()
if (i > 1)
- this.parent.remove(this).add(this, i - 1)
+ this.parent.removeElement(this).add(this, i - 1)
return this
}
// Send given element all the way to the front
, front: function() {
- return this.parent.remove(this).put(this)
+ return this.parent.removeElement(this).put(this)
}
// Send given element all the way to the back
, back: function() {
this.parent.level()
if (this.position() > 1)
- this.parent.remove(this).add(this, 0)
+ this.parent.removeElement(this).add(this, 0)
return this
}