]> source.dussan.org Git - jquery.git/commitdiff
Deprecated: Drop size and andSelf methods
authorMichał Gołębiowski <m.goleb@gmail.com>
Thu, 30 Oct 2014 00:18:42 +0000 (01:18 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Thu, 30 Oct 2014 13:09:34 +0000 (14:09 +0100)
(cherry-picked from f110360f65a268e959ae892ca36e85da3d91e606)

Fixes gh-1749
Closes gh-1822

src/deprecated.js
test/unit/deprecated.js

index 1b068bc342c97fe75afac14f5e4f99f6ff11f2f1..994b228487c2195792ec3fc003f50a5349dbf479 100644 (file)
@@ -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() {
 });
index 5839ceec399ab1ca6ef08e49c37a4af67f73a0c3..9dcad77e41db8f74be69abd979b2f89f11204db8 100644 (file)
@@ -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" );
-       });
-}