No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.

This commit is contained in:
Michał Gołębiowski 2013-04-07 13:48:46 +02:00 committed by Richard Gibson
parent 8594decfcc
commit e3777b6437
3 changed files with 7 additions and 7 deletions

View File

@ -208,11 +208,6 @@ jQuery.fn = jQuery.prototype = {
// The default length of a jQuery object is 0
length: 0,
// The number of elements contained in the matched element set
size: function() {
return this.length;
},
toArray: function() {
return core_slice.call( this );
},

View File

@ -1,4 +1,11 @@
// Limit scope pollution from any deprecated API
// (function() {
// The number of elements contained in the matched element set
jQuery.fn.size = function() {
return this.length;
};
jQuery.fn.andSelf = jQuery.fn.addBack;
// })();

View File

@ -132,8 +132,6 @@ jQuery.fn.extend({
}
});
jQuery.fn.andSelf = jQuery.fn.addBack;
function sibling( cur, dir ) {
do {
cur = cur[ dir ];