From d0853322f95b14fa1c4b87507368a11e6db94b46 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 5 Jul 2015 01:39:16 +0200 Subject: Fixes #360 --- src/element.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3