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/svg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/svg.js') diff --git a/src/svg.js b/src/svg.js index 0494300..b616f39 100755 --- a/src/svg.js +++ b/src/svg.js @@ -89,13 +89,13 @@ SVG.invent = function(config) { // Adopt existing svg elements SVG.adopt = function(node) { - // Make sure a node isn't already adopted + // make sure a node isn't already adopted if (node.instance) return node.instance - // Initialize variables + // initialize variables var element - // Adopt with element-specific settings + // adopt with element-specific settings if (node.nodeName == 'svg') element = node.parentNode instanceof SVGElement ? new SVG.Nested : new SVG.Doc else if (node.nodeName == 'lineairGradient') @@ -107,7 +107,7 @@ SVG.adopt = function(node) { else element = new SVG.Element(node) - // Ensure references + // ensure references element.type = node.nodeName element.node = node node.instance = element -- cgit v1.2.3