aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-07-05 01:39:16 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-07-05 01:39:16 +0200
commitd0853322f95b14fa1c4b87507368a11e6db94b46 (patch)
treec2d46d5acb40d109b47628babdac70189552bea9 /src
parentdd14bc36596fd895f09a8f4bdff08690cfa15c41 (diff)
downloadsvg.js-d0853322f95b14fa1c4b87507368a11e6db94b46.tar.gz
svg.js-d0853322f95b14fa1c4b87507368a11e6db94b46.zip
Fixes #360
Diffstat (limited to 'src')
-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 {