diff options
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dist/svg.js b/dist/svg.js index a296f6f..1aa30f9 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Mon Apr 17 2017 17:13:11 GMT+0200 (Mitteleuropäische Sommerzeit) +* BUILT: Thu Apr 20 2017 15:26:16 GMT+0200 (Mitteleuropäische Sommerzeit) */; (function(root, factory) {
/* istanbul ignore next */
@@ -3381,7 +3381,7 @@ SVG.handlerMap = [] SVG.listenerId = 0
// Add event binder in the SVG namespace
-SVG.on = function(node, event, listener, binding) {
+SVG.on = function(node, event, listener, binding, options) {
// create listener, get object-index
var l = listener.bind(binding || node.instance || node)
, index = (SVG.handlerMap.indexOf(node) + 1 || SVG.handlerMap.push(node)) - 1
@@ -3401,7 +3401,7 @@ SVG.on = function(node, event, listener, binding) { SVG.listeners[index][ev][ns][listener._svgjsListenerId] = l
// add listener
- node.addEventListener(ev, l, false)
+ node.addEventListener(ev, l, options || false)
}
// Add event unbinder in the SVG namespace
@@ -3467,8 +3467,8 @@ SVG.off = function(node, event, listener) { //
SVG.extend(SVG.Element, {
// Bind given event to listener
- on: function(event, listener, binding) {
- SVG.on(this.node, event, listener, binding)
+ on: function(event, listener, binding, options) {
+ SVG.on(this.node, event, listener, binding, options)
return this
}
|