summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/element.js b/src/element.js
index e2f9c47..d7dcbc1 100644
--- a/src/element.js
+++ b/src/element.js
@@ -5,6 +5,7 @@ SVG.Element = SVG.invent({
// make stroke value accessible dynamically
this._stroke = SVG.defaults.attrs.stroke
this._event = null
+ this._events = {}
// initialize data object
this.dom = {}
@@ -13,6 +14,7 @@ SVG.Element = SVG.invent({
if (this.node = node) {
this.type = node.nodeName
this.node.instance = this
+ this._events = node._events || {}
// store current attribute value
this._stroke = node.getAttribute('stroke') || this._stroke