diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-07-05 01:39:16 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-07-05 01:39:16 +0200 |
commit | d0853322f95b14fa1c4b87507368a11e6db94b46 (patch) | |
tree | c2d46d5acb40d109b47628babdac70189552bea9 /src | |
parent | dd14bc36596fd895f09a8f4bdff08690cfa15c41 (diff) | |
download | svg.js-d0853322f95b14fa1c4b87507368a11e6db94b46.tar.gz svg.js-d0853322f95b14fa1c4b87507368a11e6db94b46.zip |
Fixes #360
Diffstat (limited to 'src')
-rw-r--r-- | src/element.js | 8 |
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 { |