diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-21 18:16:13 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-21 18:16:13 +0100 |
commit | 459a56e40e5f6d3ce08d3783c1d75be1963475e1 (patch) | |
tree | 208ca9b5a3af5898749bbfcc67f97edc8433b693 /src/event.js | |
parent | c2ff36620be14e4782d2bdf6154d44ad388fcffc (diff) | |
download | svg.js-459a56e40e5f6d3ce08d3783c1d75be1963475e1.tar.gz svg.js-459a56e40e5f6d3ce08d3783c1d75be1963475e1.zip |
onclick events are now bound with SVG.on, prefixed globals, relax tests to work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/event.js b/src/event.js index 115e175..4c88816 100644 --- a/src/event.js +++ b/src/event.js @@ -16,15 +16,10 @@ // add event to SVG.Element SVG.Element.prototype[event] = function(f) { - var self = this - // bind event to element rather than element node - this.node['on' + event] = typeof f == 'function' ? - function() { return f.apply(self, arguments) } : null - + SVG.on(this.node, event, f) return this } - }) // Initialize listeners stack |