mirror of
https://github.com/jquery/jquery.git
synced 2026-02-13 05:45:28 -05:00
Fix up whitespace and a couple of glitches.
This commit is contained in:
@@ -32,11 +32,11 @@ if ( !jQuery.support.htmlSerialize ) {
|
||||
|
||||
jQuery.fn.extend({
|
||||
text: function( text ) {
|
||||
if(jQuery.isFunction(text)) {
|
||||
return this.each(function() {
|
||||
return jQuery(this).text( text.call(this) );
|
||||
});
|
||||
}
|
||||
if(jQuery.isFunction(text)) {
|
||||
return this.each(function() {
|
||||
return jQuery(this).text( text.call(this) );
|
||||
});
|
||||
}
|
||||
|
||||
if ( typeof text !== "object" && text !== undefined ) {
|
||||
return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
|
||||
|
||||
Reference in New Issue
Block a user