Deprecated: Drop size and andSelf methods

(cherry-picked from f110360f65a268e959ae892ca36e85da3d91e606)

Fixes gh-1749
Closes gh-1822
parent 630a5a8c
define([ define(function() {
"./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;
}); });
module("deprecated", { teardown: moduleTeardown }); 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" );
});
}
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