-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecated: Drop size and andSelf methods
- Loading branch information
Showing
2 changed files
with
1 addition
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" ); | ||
}); | ||
} |