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/
This commit is contained in:
Kyle Klein
2013-11-08 10:31:21 -07:00
parent 55eb3d0ccd
commit 01cc911111
+1 -1
View File
@@ -11,7 +11,7 @@ Here is an example of using both the bind and helper method syntax:
```js
// using bind
$('#my_elem').bind('mousewheel', function(event, delta, deltaX, deltaY) {
$('#my_elem').on('mousewheel', function(event, delta, deltaX, deltaY) {
console.log(delta, deltaX, deltaY);
});