summaryrefslogtreecommitdiffstats
path: root/src/svg.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/svg.js
parent98b3ec9d79ef31d59dc865fbc15919b44c69b576 (diff)
downloadsvg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.tar.gz
svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.zip
Added svg import / export functionalty
Diffstat (limited to 'src/svg.js')
-rwxr-xr-xsrc/svg.js8
1 files changed, 4 insertions, 4 deletions
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