summaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-17 16:55:16 +0100
committerwout <wout@impinc.co.uk>2012-12-17 16:55:16 +0100
commit6a013f19d6fa84e538d31bca5f1466c5f3479630 (patch)
tree3807acc4240bb1dbd5f25406b262a240351fa67a /src/container.js
parent9ba8a780e0da4de4839df119f1d57d7f6327b1c6 (diff)
downloadsvg.js-6a013f19d6fa84e538d31bca5f1466c5f3479630.tar.gz
svg.js-6a013f19d6fa84e538d31bca5f1466c5f3479630.zip
Refactored code for readability and size
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/container.js b/src/container.js
index 9f13282..cc2fd4f 100644
--- a/src/container.js
+++ b/src/container.js
@@ -9,7 +9,7 @@ SVG.Container = {
if (!this.contains(e)) {
i = i == null ? this.children().length : i;
this.children().splice(i, 0, e);
- this.svgElement.insertBefore(e.svgElement, this.svgElement.childNodes[i + 1]);
+ this.node.insertBefore(e.node, this.node.childNodes[i + 1]);
e.parent = this;
}
@@ -58,7 +58,7 @@ SVG.Container = {
if (0 <= i && i < this.children().length) {
var e = this.children()[i];
this.children().splice(i, 1);
- this.svgElement.removeChild(e.svgElement);
+ this.node.removeChild(e.node);
e.parent = null;
}