X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=17cfa842dc6d9f48ac389cdd5701233e728aa214;hb=f078e930edb25190bb04c682ad067b72331b6e69;hp=baab8c6c0e5940e9fd645ffd19e35d2e5e242bd9;hpb=da51cd0e43d6d61e0d3d6c197cef1e658bad29bc;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index baab8c6..17cfa84 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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 ) );