Commit 9449591e authored by John Resig's avatar John Resig

Fixed bug with .text(), it only returned the text for the first element.

parent 07aa989c
......@@ -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; });
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment