mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 01:45:08 -05:00
Fixed bug with .text(), it only returned the text for the first element.
This commit is contained in:
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@@ -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; });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user