Fixed bug with .text(), it only returned the text for the first element.

This commit is contained in:
John Resig 2007-01-11 04:52:41 +00:00
parent 07aa989ce9
commit 9449591eef

View file

@ -548,7 +548,7 @@ jQuery.fn = jQuery.prototype = {
"textContent" : "innerText";
return e == undefined ?
this.length && this[0][ type ] :
jQuery.map(this, function(a){ return a[ type ]; }).join('') :
this.each(function(){ this[ type ] = e; });
},