Skip to content

Commit

Permalink
Rename internal .getText to maintain parity between it and the primar…
Browse files Browse the repository at this point in the history
…y .text(). Fixes #6094.
  • Loading branch information
jeresig committed Feb 13, 2010
1 parent abcc1a7 commit a7dc66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manipulation.js
Expand Up @@ -45,7 +45,7 @@ jQuery.fn.extend({
return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
}

return jQuery.getText( this );
return jQuery.text( this );
},

wrapAll: function( html ) {
Expand Down
2 changes: 1 addition & 1 deletion src/sizzle-jquery.js
Expand Up @@ -2,7 +2,7 @@ jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters;
jQuery.unique = Sizzle.uniqueSort;
jQuery.getText = getText;
jQuery.text = getText;
jQuery.isXMLDoc = isXML;
jQuery.contains = contains;

Expand Down

0 comments on commit a7dc66b

Please sign in to comment.