summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0e8ce4d..e3be5e8 100644
--- a/README.md
+++ b/README.md
@@ -2873,6 +2873,12 @@ var click = function() {
rect.on('click', click)
```
+**Note:** The context of `this` in the callback is binded to the element. You can change this context by applying your own object:
+
+```javascript
+rect.on('click', click, window) // context of this is window
+```
+
__`returns`: `itself`__
Unbinding events is just as easy: