diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-05-15 23:14:13 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-05-15 23:14:13 -0400 |
commit | f76518e3931f7f2522a38bf37a7df24a620858fc (patch) | |
tree | 2476252b72d53819e3b4f536bad0daadf80fcf77 /src/traversing.js | |
parent | ca48d490407b198e022b0d0294a7493602155f74 (diff) | |
download | jquery-f76518e3931f7f2522a38bf37a7df24a620858fc.tar.gz jquery-f76518e3931f7f2522a38bf37a7df24a620858fc.zip |
Rename .andSelf to .addBack, deprecate .andSelf #9800
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index 0627ab4f0..d9be9c7e6 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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 ) { |