We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10913e0 commit 81bd846Copy full SHA for 81bd846
src/core.js
@@ -111,3 +111,9 @@ jQuery.sub = function() {
111
migrateWarn( "jQuery.sub() is deprecated" );
112
return jQuerySub;
113
};
114
+
115
+// The number of elements contained in the matched element set
116
+jQuery.fn.size = function() {
117
+ migrateWarn( "jQuery.fn.size is deprecated; use the length property." );
118
+ return this.length;
119
+};
src/traversing.js
@@ -0,0 +1,4 @@
1
+jQuery.fn.andSelf = function() {
2
+ migrateWarn( "jQuery.fn.andSelf is deprecated; use jQuery.fn.addBack." );
3
+ return jQuery.fn.addBack.apply( this, arguments );
4
0 commit comments