diff options
author | wout <wout@impinc.co.uk> | 2013-01-08 17:10:15 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-08 17:10:15 +0100 |
commit | bc75940ab0408c8b50a1cb5e3567f9155d53be01 (patch) | |
tree | c833e13b94b6073e940401bf79fafa56f443d880 /dist/svg.js | |
parent | c4dc580359b80182a9501d10e84f296336753823 (diff) | |
download | svg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.tar.gz svg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.zip |
Storing element type
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js index d956f06..57459fa 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.1-72-g3bbd30e - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */ +/* svg.js v0.1-73-gc4dc580 - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */ (function() { this.svg = function(element) { @@ -158,7 +158,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 = { @@ -999,6 +1000,7 @@ /* insert and store child */ this.node.insertBefore(element.node, null); this.child = element; + this.type = element.node.nodeName; }; // inherit from SVG.Shape |