diff options
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: |