summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-08 17:10:15 +0100
committerwout <wout@impinc.co.uk>2013-01-08 17:10:15 +0100
commitbc75940ab0408c8b50a1cb5e3567f9155d53be01 (patch)
treec833e13b94b6073e940401bf79fafa56f443d880 /src/element.js
parentc4dc580359b80182a9501d10e84f296336753823 (diff)
downloadsvg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.tar.gz
svg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.zip
Storing element type
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js3
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 = {