From 01cc9111118854681fc3f7f472509eddbce1bd3d Mon Sep 17 00:00:00 2001 From: Kyle Klein Date: Fri, 8 Nov 2013 10:31:21 -0700 Subject: [PATCH] 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/ --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index fba5680fe..15e1735e7 100644 --- a/README.markdown +++ b/README.markdown @@ -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); });