diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-02-27 12:17:37 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-02-27 12:17:37 +0100 |
commit | ec628ee93ddc2c16929f0f275068b6585ab18e77 (patch) | |
tree | eec951ff8758fddccc7087b7f4c1264cf6de0d6f /src | |
parent | c835f41c7f30815df1ded7ae4fa8da0d0d5b09fd (diff) | |
download | svg.js-ec628ee93ddc2c16929f0f275068b6585ab18e77.tar.gz svg.js-ec628ee93ddc2c16929f0f275068b6585ab18e77.zip |
search and replace replaced to much
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
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] |