diff options
author | wout <wout@impinc.co.uk> | 2013-07-01 20:47:33 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-07-01 20:47:33 +0100 |
commit | 4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a (patch) | |
tree | 5223b6abf4d8da2d4c4811c53e6c2256e702f425 /src/event.js | |
parent | b9b4af505a8f6abae7167bdff39d88c484d51aa7 (diff) | |
download | svg.js-4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a.tar.gz svg.js-4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a.zip |
Added SVG.Set adn bumped to v0.24
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/event.js b/src/event.js index 84022c7..2fc14bb 100644 --- a/src/event.js +++ b/src/event.js @@ -3,19 +3,15 @@ // rect.click(function() { // this.fill({ color: '#f06' }) // }) -;[ 'click' -, 'dblclick' -, 'mousedown' -, 'mouseup' -, 'mouseover' -, 'mouseout' -, 'mousemove' -, 'mouseenter' -, 'mouseleave' -, 'touchstart' -, 'touchend' -, 'touchmove' -, 'touchcancel' ].forEach(function(event) { +;[ 'click' + , 'dblclick' + , 'mousedown' + , 'mouseup' + , 'mouseover' + , 'mouseout' + , 'mousemove' + , 'mouseenter' + , 'mouseleave' ].forEach(function(event) { /* add event to SVG.Element */ SVG.Element.prototype[event] = function(f) { |