mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.
(cherry picked from commit e3777b6437
)
This commit is contained in:
parent
c44f07916d
commit
18d006762c
@ -179,11 +179,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 );
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
// 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;
|
jQuery.fn.andSelf = jQuery.fn.addBack;
|
||||||
|
|
||||||
// })();
|
// })();
|
||||||
|
Loading…
Reference in New Issue
Block a user