From f110360f65a268e959ae892ca36e85da3d91e606 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Thu, 30 Oct 2014 01:18:42 +0100 Subject: [PATCH] Deprecated: Drop size and andSelf methods Fixes gh-1749 Closes gh-1822 --- src/deprecated.js | 13 +------------ test/unit/deprecated.js | 6 ------ 2 files changed, 1 insertion(+), 18 deletions(-) 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" ); - }); -} -- 2.39.5