summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/element.js b/src/element.js
index 978db4c..01ab8b0 100644
--- a/src/element.js
+++ b/src/element.js
@@ -64,14 +64,14 @@ SVG.Element = SVG.invent({
// insert the clone after myself
this.after(clone)
-
+
return clone
}
// Remove element
, remove: function() {
if (this.parent())
this.parent().removeElement(this)
-
+
return this
}
// Replace element
@@ -95,7 +95,7 @@ SVG.Element = SVG.invent({
// Checks whether the given point inside the bounding box of the element
, inside: function(x, y) {
var box = this.bbox()
-
+
return x > box.x
&& y > box.y
&& x < box.x + box.width
@@ -189,7 +189,7 @@ SVG.Element = SVG.invent({
// transplant nodes
for (var i = 0, il = well.firstChild.childNodes.length; i < il; i++)
- this.node.appendChild(well.firstChild.childNodes[i])
+ this.node.appendChild(well.firstChild.firstChild)
// otherwise act as a getter
} else {