summaryrefslogtreecommitdiffstats
path: root/src/parent.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-08-01 15:21:54 +0200
committerwout <wout@impinc.co.uk>2014-08-01 15:21:54 +0200
commit92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4 (patch)
tree720a1bf7ef4a8de41c785eb5c89ee13cee1d058d /src/parent.js
parent98b3ec9d79ef31d59dc865fbc15919b44c69b576 (diff)
downloadsvg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.tar.gz
svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.zip
Added svg import / export functionalty
Diffstat (limited to 'src/parent.js')
-rwxr-xr-xsrc/parent.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parent.js b/src/parent.js
index 1954259..c4476c6 100755
--- a/src/parent.js
+++ b/src/parent.js
@@ -67,7 +67,7 @@ SVG.Parent = SVG.invent({
return this
}
- // Remove a child element at a position
+ // Remove a given child
, removeElement: function(element) {
this.node.removeChild(element.node)
@@ -75,11 +75,11 @@ SVG.Parent = SVG.invent({
}
// Remove all elements in this container
, clear: function() {
- // Remove children
+ // remove children
while(this.node.hasChildNodes())
this.node.removeChild(this.node.lastChild)
- // Remove defs reference
+ // remove defs reference
delete this._defs
return this