mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Rename internal .getText to maintain parity between it and the primary .text(). Fixes #6094.
This commit is contained in:
parent
abcc1a76ee
commit
a7dc66b832
@ -45,7 +45,7 @@ jQuery.fn.extend({
|
|||||||
return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
|
return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return jQuery.getText( this );
|
return jQuery.text( this );
|
||||||
},
|
},
|
||||||
|
|
||||||
wrapAll: function( html ) {
|
wrapAll: function( html ) {
|
||||||
|
@ -2,7 +2,7 @@ jQuery.find = Sizzle;
|
|||||||
jQuery.expr = Sizzle.selectors;
|
jQuery.expr = Sizzle.selectors;
|
||||||
jQuery.expr[":"] = jQuery.expr.filters;
|
jQuery.expr[":"] = jQuery.expr.filters;
|
||||||
jQuery.unique = Sizzle.uniqueSort;
|
jQuery.unique = Sizzle.uniqueSort;
|
||||||
jQuery.getText = getText;
|
jQuery.text = getText;
|
||||||
jQuery.isXMLDoc = isXML;
|
jQuery.isXMLDoc = isXML;
|
||||||
jQuery.contains = contains;
|
jQuery.contains = contains;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user