Fix a strange Chrome issue

This commit is contained in:
wycats 2011-01-14 11:21:45 -05:00
parent fa45f25d1c
commit 52a02383fa

View file

@ -196,7 +196,8 @@ jQuery.each({
} }
}, function( name, fn ) { }, function( name, fn ) {
jQuery.fn[ name ] = function( until, selector ) { jQuery.fn[ name ] = function( until, selector ) {
var ret = jQuery.map( this, fn, until ); var ret = jQuery.map( this, fn, until ),
args = slice.call(arguments);
if ( !runtil.test( name ) ) { if ( !runtil.test( name ) ) {
selector = until; selector = until;
@ -212,7 +213,7 @@ jQuery.each({
ret = ret.reverse(); ret = ret.reverse();
} }
return this.pushStack( ret, name, slice.call(arguments).join(",") ); return this.pushStack( ret, name, args.join(",") );
}; };
}); });