diff options
author | wout <wout@impinc.co.uk> | 2014-08-01 15:21:54 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-08-01 15:21:54 +0200 |
commit | 92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4 (patch) | |
tree | 720a1bf7ef4a8de41c785eb5c89ee13cee1d058d /src/parent.js | |
parent | 98b3ec9d79ef31d59dc865fbc15919b44c69b576 (diff) | |
download | svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.tar.gz svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.zip |
Added svg import / export functionalty
Diffstat (limited to 'src/parent.js')
-rwxr-xr-x | src/parent.js | 6 |
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 |