Fixed bug with .text(), it only returned the text for the first element.
This commit is contained in:
parent
07aa989ce9
commit
9449591eef
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; });
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue