Skip to content

Commit 009db43

Browse files
author
Alan Garcia
committed
Clarify that jQuery.Event object is returned as part of the callback
1 parent f623fa8 commit 009db43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ __Example:__
7676
Subscribe to the `ab-color-found` event like so:
7777

7878
```javascript
79-
$('img.my-image').on('ab-color-found', function(payload){
79+
$('img.my-image').on('ab-color-found', function(ev,payload){
8080
console.log(payload.color); // The dominant color in the image.
8181
console.log(payload.palette); // The color palette found in the image.
82+
console.log(ev); // The jQuery.Event object
8283
});
8384
```
8485

0 commit comments

Comments
 (0)