diff options
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js index 3ba20b1..a1a5ccc 100644 --- a/src/element.js +++ b/src/element.js @@ -4,7 +4,8 @@ // SVG.Element = function Element(node) { /* keep reference to the element node */ - this.node = node; + if (this.node = node) + this.type = node.nodeName; /* initialize attribute store with defaults */ this.attrs = { |