The delegate method is waste?
Here said
- $("table").delegate("td", "hover", function(){
- $(this).toggleClass("hover");
- });
is same to
- $("table").each(function(){
- $("td", this).live("hover", function(){
- $(this).toggleClass("hover");
- });
- });
But I think it is also same to
- $("table td").live("hover", function(){
- $(this).toggleClass("hover");
- });
Thus the method delegate is waste, right?