From: Michał Gołębiowski Date: Thu, 30 Oct 2014 00:18:42 +0000 (+0100) Subject: Deprecated: Drop size and andSelf methods X-Git-Tag: 3.0.0-alpha1+compat~214 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1913cf0316edbab77a081ae9c2ee218a61ce5a7;p=jquery.git Deprecated: Drop size and andSelf methods (cherry-picked from f110360f65a268e959ae892ca36e85da3d91e606) Fixes gh-1749 Closes gh-1822 --- diff --git a/src/deprecated.js b/src/deprecated.js index 1b068bc34..994b22848 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -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() { }); diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js index 5839ceec3..9dcad77e4 100644 --- a/test/unit/deprecated.js +++ b/test/unit/deprecated.js @@ -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" ); - }); -}