mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Deprecated: Drop size and andSelf methods
Fixes gh-1749 Closes gh-1822
This commit is contained in:
parent
5bc1ddc5cc
commit
f110360f65
@ -1,13 +1,2 @@
|
||||
define([
|
||||
"./core",
|
||||
"./traversing"
|
||||
], function( jQuery ) {
|
||||
|
||||
// The number of elements contained in the matched element set
|
||||
jQuery.fn.size = function() {
|
||||
return this.length;
|
||||
};
|
||||
|
||||
jQuery.fn.andSelf = jQuery.fn.addBack;
|
||||
|
||||
define(function() {
|
||||
});
|
||||
|
@ -1,8 +1,2 @@
|
||||
module("deprecated", { teardown: moduleTeardown });
|
||||
|
||||
if ( jQuery.fn.size ) {
|
||||
test("size()", function() {
|
||||
expect(1);
|
||||
equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" );
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user