Skip to content

Commit 01cc911

Browse files
committed
Update README.markdown
Replace 'bind' with 'on', since it is the "preferred" way to attach event handlers since jQuery 1.7 http://api.jquery.com/bind/
1 parent 55eb3d0 commit 01cc911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Here is an example of using both the bind and helper method syntax:
1111

1212
```js
1313
// using bind
14-
$('#my_elem').bind('mousewheel', function(event, delta, deltaX, deltaY) {
14+
$('#my_elem').on('mousewheel', function(event, delta, deltaX, deltaY) {
1515
console.log(delta, deltaX, deltaY);
1616
});
1717

0 commit comments

Comments
 (0)