Skip to content
Permalink
Browse files

No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.

(cherry picked from commit e3777b6)
  • Loading branch information...
mgol authored and gibson042 committed Apr 7, 2013
1 parent c44f079 commit 18d006762c557ed635404436f5733dccaf786f9f
Showing with 5 additions and 5 deletions.
  1. +0 −5 src/core.js
  2. +5 −0 src/deprecated.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 );
},
@@ -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;

// })();

0 comments on commit 18d0067

Please sign in to comment.
You can’t perform that action at this time.