Commit e3777b64 authored by Michał Gołębiowski's avatar Michał Gołębiowski Committed by Richard Gibson

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

parent 8594decf
...@@ -208,11 +208,6 @@ jQuery.fn = jQuery.prototype = { ...@@ -208,11 +208,6 @@ jQuery.fn = jQuery.prototype = {
// The default length of a jQuery object is 0 // The default length of a jQuery object is 0
length: 0, length: 0,
// The number of elements contained in the matched element set
size: function() {
return this.length;
},
toArray: function() { toArray: function() {
return core_slice.call( this ); return core_slice.call( this );
}, },
......
// Limit scope pollution from any deprecated API // Limit scope pollution from any deprecated API
// (function() { // (function() {
// The number of elements contained in the matched element set
jQuery.fn.size = function() {
return this.length;
};
jQuery.fn.andSelf = jQuery.fn.addBack;
// })(); // })();
...@@ -132,8 +132,6 @@ jQuery.fn.extend({ ...@@ -132,8 +132,6 @@ jQuery.fn.extend({
} }
}); });
jQuery.fn.andSelf = jQuery.fn.addBack;
function sibling( cur, dir ) { function sibling( cur, dir ) {
do { do {
cur = cur[ dir ]; cur = cur[ dir ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment