> The method attaches the same event handler to every matched element in the selection.
Why is that a con for .bind()? This used to be considered a performance benefit compared to onclick.
Why is that a con for .bind()? This used to be considered a performance benefit compared to onclick.
$( "div" ).click( function() {} );
Each div will have the same handler applied, it doesn't make a new one for every div.
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).