diff options
author | wout <wout@impinc.co.uk> | 2012-12-31 12:21:45 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-31 12:21:45 +0100 |
commit | 9f622f7b160fb977a4354eb0f775d4b53a2f7443 (patch) | |
tree | 120ab0acc0e073b89a9f68594c36d8a1501bdc20 /src/event.js | |
parent | 7d3e4c43a64cdb9ce19b71d8dc1783c0bc031d91 (diff) | |
download | svg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.tar.gz svg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.zip |
Added mask.js
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index 4f587d2..32c2be2 100644 --- a/src/event.js +++ b/src/event.js @@ -1,5 +1,16 @@ -var eventTypes = ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove'].forEach(function(e) { +[ 'click', + 'dblclick', + 'mousedown', + 'mouseup', + 'mouseover', + 'mouseout', + 'mousemove', + 'touchstart', + 'touchend', + 'touchmove', + 'touchcancel' ].forEach(function(e) { + // add event to SVG.Elment SVG.Element.prototype[e] = function(f) { var s = this; |