From: Ulrich-Matthias Schäfer Date: Tue, 27 Feb 2018 11:17:37 +0000 (+0100) Subject: search and replace replaced to much X-Git-Tag: 3.0.0~67^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec628ee93ddc2c16929f0f275068b6585ab18e77;p=svg.js.git search and replace replaced to much --- diff --git a/src/event.js b/src/event.js index 22ff152..65b13b0 100644 --- a/src/event.js +++ b/src/event.js @@ -22,7 +22,7 @@ } }) -SVG.listener = 0 +SVG.listenerId = 0 // Add event binder in the SVG namespace SVG.on = function (node, events, listener, binding, options) { @@ -35,7 +35,7 @@ SVG.on = function (node, events, listener, binding, options) { var bag = n.instance.events // add id to listener - if (!listener._svgjsListenerId) { listener._svgjsListenerId = ++SVG.listener } + if (!listener._svgjsListenerId) { listener._svgjsListenerId = ++SVG.listenerId } events.split(SVG.regex.delimiter).forEach(function (event) { var ev = event.split('.')[0]