aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
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