mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
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:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user