aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.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 /dist/svg.js
parentc4dc580359b80182a9501d10e84f296336753823 (diff)
downloadsvg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.tar.gz
svg.js-bc75940ab0408c8b50a1cb5e3567f9155d53be01.zip
Storing element type
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js6
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
='n77' href='#n77'>77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118