From 17e15d57d8eb2cb20cc72abcf1bd5bb1bbd39e49 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 3 Sep 2014 15:24:24 +0200 Subject: Fixed bug in event detaching --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README.md') 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: -- cgit v1.2.3