diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-10-30 01:18:42 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-10-30 14:09:34 +0100 |
commit | f1913cf0316edbab77a081ae9c2ee218a61ce5a7 (patch) | |
tree | 939d571fe554286966fc56fc5a83b7f3b6020764 | |
parent | 630a5a8c0b53dcc419257f6288e6e8b6a0e4c2c3 (diff) | |
download | jquery-f1913cf0316edbab77a081ae9c2ee218a61ce5a7.tar.gz jquery-f1913cf0316edbab77a081ae9c2ee218a61ce5a7.zip |
Deprecated: Drop size and andSelf methods
(cherry-picked from f110360f65a268e959ae892ca36e85da3d91e606)
Fixes gh-1749
Closes gh-1822
-rw-r--r-- | src/deprecated.js | 13 | ||||
-rw-r--r-- | test/unit/deprecated.js | 6 |
2 files changed, 1 insertions, 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" ); - }); -} |