Fix up whitespace and a couple of glitches.
This commit is contained in:
parent
b3cee01820
commit
1a4d1904ae
5 changed files with 37 additions and 44 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue