Re:Differences Between jQuery .bind() vs .live() vs .delegat...
by rimantas on Monday February 06, 2012 @12:38PM
(#3558296)
I think you misread this. It does not bind the same instance of the handler to each element. Each element gets its own copy of this handler, hence the waste of memory.
[ Parent
| on HN ]
Re:Differences Between jQuery .bind() vs .live() vs .delegat...
by dcher on Monday February 06, 2012 @02:13PM
(#3558739)
What? No they don't, unless you're making the handler in a loop.
$( "div" ).click( function() {} );
Each div will have the same handler applied, it doesn't make a new one for every div.