summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-09-03 15:24:24 +0200
committerwout <wout@impinc.co.uk>2014-09-03 15:24:24 +0200
commit17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49 (patch)
treed06f213fdf3eb52d35b3f8069dc4f6733795fa3d /README.md
parent69da2d385450daa158d75ebe59449cc044ec8022 (diff)
downloadsvg.js-17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49.tar.gz
svg.js-17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49.zip
Fixed bug in event detaching
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1af66e1..e183ca1 100755
--- a/README.md
+++ b/README.md
@@ -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: