diff options
author | wout <wout@impinc.co.uk> | 2014-09-03 15:24:24 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-09-03 15:24:24 +0200 |
commit | 17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49 (patch) | |
tree | d06f213fdf3eb52d35b3f8069dc4f6733795fa3d /README.md | |
parent | 69da2d385450daa158d75ebe59449cc044ec8022 (diff) | |
download | svg.js-17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49.tar.gz svg.js-17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49.zip |
Fixed bug in event detaching
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2864,6 +2864,18 @@ Unbinding events is just as easy: rect.off('click', click) ``` +Or to unbind all listeners for a given event: + +```javascript +rect.off('click') +``` + +Or even unbind all listeners for all events: + +```javascript +rect.off() +``` + __`returns`: `itself`__ But there is more to event listeners. You can bind events to html elements as well: |