aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-13 21:10:27 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-13 21:10:27 +0100
commit5a72b487125beaa6b7bd81584fb9d35c4ffc43be (patch)
treecf297b91bf9e99ce21a1ff7d6936a2830e320935 /src/element.js
parent05ba3ddc990e6d22d1bac7e23b72613a355287bc (diff)
downloadsvg.js-5a72b487125beaa6b7bd81584fb9d35c4ffc43be.tar.gz
svg.js-5a72b487125beaa6b7bd81584fb9d35c4ffc43be.zip
Round up everything for the last 2.x release2.7.0
### Fixed - fixed calling `parent()` on `documentFragment`s children (#927) - parser is not focusable anymore (#908) - `SVG.Element.click(null)` correctly unbinds the event (#878) - fix memory leak (#905) ### Added - `SVG.Set` now accepts another Set as input (#893) - `on()/off()` accepts multiple event names as input (backport from 3.0)
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