aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
// })();