Skip to content

Commit 52a0238

Browse files
committed
Fix a strange Chrome issue
1 parent fa45f25 commit 52a0238

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/traversing.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ jQuery.each({
196196
}
197197
}, function( name, fn ) {
198198
jQuery.fn[ name ] = function( until, selector ) {
199-
var ret = jQuery.map( this, fn, until );
199+
var ret = jQuery.map( this, fn, until ),
200+
args = slice.call(arguments);
200201

201202
if ( !runtil.test( name ) ) {
202203
selector = until;
@@ -212,7 +213,7 @@ jQuery.each({
212213
ret = ret.reverse();
213214
}
214215

215-
return this.pushStack( ret, name, slice.call(arguments).join(",") );
216+
return this.pushStack( ret, name, args.join(",") );
216217
};
217218
});
218219

0 commit comments

Comments
 (0)