X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=17cfa842dc6d9f48ac389cdd5701233e728aa214;hb=1a4d1904ae8631f94b7400d99af24d3fe2f33ecd;hp=baab8c6c0e5940e9fd645ffd19e35d2e5e242bd9;hpb=b3cee01820adde707428d68fcf02b0fdf53fe527;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 ) );