Skip to content

Commit

Permalink
Merge branch 'issue-82-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanxshi committed Jun 11, 2018
2 parents b81fc84 + 2c80d43 commit bff021b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jquery-patterns/event-delegation.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
Description: event delegation pattern and antipattern
*/

// antipattern
$('a.trigger', $('#container')[0]).live('click', handlerFn);
// antipattern
// As of jQuery 1.7, the .live() method is deprecated
// $('a.trigger', $('#container')[0]).live('click', handlerFn);


// preferred
Expand Down

0 comments on commit bff021b

Please sign in to comment.