From 92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4 Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 1 Aug 2014 15:21:54 +0200 Subject: Added svg import / export functionalty --- src/parent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parent.js') 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 -- cgit v1.2.3