diff options
Diffstat (limited to 'src/svg.js')
-rw-r--r-- | src/svg.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -90,6 +90,9 @@ SVG.invent = function(config) { // Adopt existing svg elements SVG.adopt = function(node) { + // check for presence of node + if (!node) return null + // make sure a node isn't already adopted if (node.instance) return node.instance |