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/svg.js | |
parent | 98b3ec9d79ef31d59dc865fbc15919b44c69b576 (diff) | |
download | svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.tar.gz svg.js-92fbfd5d58ddd1ed3d01ca645a90e50fa466d0c4.zip |
Added svg import / export functionalty
Diffstat (limited to 'src/svg.js')
-rwxr-xr-x | src/svg.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |