Skip to content

Commit f1913cf

Browse files
committed
Deprecated: Drop size and andSelf methods
(cherry-picked from f110360) Fixes gh-1749 Closes gh-1822
1 parent 630a5a8 commit f1913cf

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/deprecated.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
define([
2-
"./core",
3-
"./traversing"
4-
], function( jQuery ) {
5-
6-
// The number of elements contained in the matched element set
7-
jQuery.fn.size = function() {
8-
return this.length;
9-
};
10-
11-
jQuery.fn.andSelf = jQuery.fn.addBack;
12-
1+
define(function() {
132
});

test/unit/deprecated.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
module("deprecated", { teardown: moduleTeardown });
22

3-
if ( jQuery.fn.size ) {
4-
test("size()", function() {
5-
expect(1);
6-
equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" );
7-
});
8-
}

0 commit comments

Comments
 (0)