Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Compared to onclick, it's certainly a performance benefit.

However the difference here is in looping over every matched element to add the handler (bind) versus adding the handler to a single element further up the DOM tree (delegate).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: