git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07aa989
)
Fixed bug with .text(), it only returned the text for the first element.
author
John Resig
<jeresig@gmail.com>
Thu, 11 Jan 2007 04:52:41 +0000
(
04:52
+0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 11 Jan 2007 04:52:41 +0000
(
04:52
+0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
dbec38f
..
9db0f9d
100644
(file)
--- 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; });
},