summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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: