Skip to content

Commit

Permalink
Deprecated: Drop size and andSelf methods
Browse files Browse the repository at this point in the history
Fixes gh-1749
Closes gh-1822
  • Loading branch information
mgol committed Oct 30, 2014
1 parent 5bc1ddc commit f110360
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
13 changes: 1 addition & 12 deletions src/deprecated.js
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() {
});
6 changes: 0 additions & 6 deletions test/unit/deprecated.js
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" );
});
}

0 comments on commit f110360

Please sign in to comment.