diff options
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) { |