Jquery Callback Without Anonymous Function


/ Published in: JavaScript
Save to your folder(s)

Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element.

This shows how you can just create a single function and in the event handler callback just call that function.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.