Skip to content
Permalink
Browse files
Fixed bug with .text(), it only returned the text for the first element.
  • Loading branch information
jeresig committed Jan 11, 2007
1 parent 07aa989 commit 9449591eef44360b5bfdb9a23cea1f4a1a6f3c33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -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; });
},

0 comments on commit 9449591

Please sign in to comment.