Fix up whitespace and a couple of glitches.

This commit is contained in:
Yehuda Katz 2009-12-09 21:15:49 -08:00
parent b3cee01820
commit 1a4d1904ae
5 changed files with 37 additions and 44 deletions

View file

@ -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 ) );