diff options
author | John Resig <jeresig@gmail.com> | 2007-01-11 04:52:41 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-11 04:52:41 +0000 |
commit | 9449591eef44360b5bfdb9a23cea1f4a1a6f3c33 (patch) | |
tree | 75bb50eb8e76459203fc8cac48708edd22c2e8a2 | |
parent | 07aa989ce912e2bcdee79074e119599aa5eb72f6 (diff) | |
download | jquery-9449591eef44360b5bfdb9a23cea1f4a1a6f3c33.tar.gz jquery-9449591eef44360b5bfdb9a23cea1f4a1a6f3c33.zip |
Fixed bug with .text(), it only returned the text for the first element.
-rw-r--r-- | src/jquery/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index dbec38f54..9db0f9d5f 100644 --- a/src/jquery/jquery.js +++ b/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; }); }, |