Is there someone who might be able to explain why using a function such as:
$('#potato').delegate('.frenchFry', 'click', function(e){
// do something...
});
is better than:
$('#potato').bind('click', function(e){
if($(e.target).hasClass('frenchFry'){
// do something...
}
});
Assuming a large number of delegations on a very dynamic and constantly changing #potato
? Is there a speed advantage to using delegate (not from any tests I could come up with)?