mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 17:25:04 -05:00
Rename .andSelf to .addBack, deprecate .andSelf #9800
This commit is contained in:
committed by
Rick Waldron
parent
ca48d49040
commit
f76518e393
@@ -143,11 +143,13 @@ jQuery.fn.extend({
|
||||
jQuery.unique( all ) );
|
||||
},
|
||||
|
||||
andSelf: function() {
|
||||
addBack: function() {
|
||||
return this.add( this.prevObject );
|
||||
}
|
||||
});
|
||||
|
||||
jQuery.fn.andSelf = jQuery.fn.addBack;
|
||||
|
||||
// A painfully simple check to see if an element is disconnected
|
||||
// from a document (should be improved, where feasible).
|
||||
function isDisconnected( node ) {
|
||||
|
||||
Reference in New Issue
Block a user