aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-04-07 13:48:46 +0200
committerRichard Gibson <richard.gibson@gmail.com>2013-04-07 23:29:36 -0400
commit18d006762c557ed635404436f5733dccaf786f9f (patch)
tree923f050120dd95b779466ceb59d5d06c4a073461
parentc44f07916d7ee2139c7aa0f9e633143b74433d98 (diff)
downloadjquery-18d006762c557ed635404436f5733dccaf786f9f.tar.gz
jquery-18d006762c557ed635404436f5733dccaf786f9f.zip
No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.
(cherry picked from commit e3777b64377947b7222a2050aee7f2ec371faef9)
-rw-r--r--src/core.js5
-rw-r--r--src/deprecated.js5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core.js b/src/core.js
index a35e79893..265f0bc4a 100644
--- a/src/core.js
+++ b/src/core.js
@@ -179,11 +179,6 @@ jQuery.fn = jQuery.prototype = {
// The default length of a jQuery object is 0
length: 0,
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
toArray: function() {
return core_slice.call( this );
},
diff --git a/src/deprecated.js b/src/deprecated.js
index 722edb006..40f8dd6cd 100644
--- a/src/deprecated.js
+++ b/src/deprecated.js
@@ -1,6 +1,11 @@
// Limit scope pollution from any deprecated API
// (function() {
+// The number of elements contained in the matched element set
+jQuery.fn.size = function() {
+ return this.length;
+};
+
jQuery.fn.andSelf = jQuery.fn.addBack;
// })();