From 4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a Mon Sep 17 00:00:00 2001 From: wout Date: Mon, 1 Jul 2013 20:47:33 +0100 Subject: Added SVG.Set adn bumped to v0.24 --- src/event.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'src/event.js') 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) { -- cgit v1.2.3