We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b481b9 commit 39a77c2Copy full SHA for 39a77c2
src/traversing.js
@@ -2,8 +2,7 @@ var runtil = /Until$/,
2
rparentsprev = /^(?:parents|prevUntil|prevAll)/,
3
// Note: This RegExp should be improved, or likely pulled from Sizzle
4
rmultiselector = /,/,
5
- slice = Array.prototype.slice,
6
- join = Array.prototype.join;
+ slice = Array.prototype.slice;
7
8
// Implement the identical functionality for filter and not
9
var winnow = function( elements, qualifier, keep ) {
@@ -138,7 +137,7 @@ jQuery.fn.extend({
138
137
139
slice: function() {
140
return this.pushStack( slice.apply( this, arguments ),
141
- "slice", join.call(arguments, ",") );
+ "slice", slice.call(arguments).join(",") );
142
},
143
144
map: function( callback ) {
@@ -187,7 +186,7 @@ jQuery.each({
187
186
ret = ret.reverse();
188
}
189
190
- return this.pushStack( ret, name, join.call(arguments, ",") );
+ return this.pushStack( ret, name, slice.call(arguments).join(",") );
191
};
192
});
193
0 commit comments