X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ftraversing.js;h=c54e254304733ef4508eae890abaef9e4a6e1774;hb=4058881784cec4adad881188064421ded69a0258;hp=e169be084231373ead81607f15ab2ba33f6ba4d5;hpb=e5ee89ec9a11804b39e9722f47eeeb00648f37ea;p=jquery.git diff --git a/src/traversing.js b/src/traversing.js index e169be0..c54e254 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -203,7 +203,12 @@ jQuery.each({ } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a02383fa521c51d9996a46f03a7080dd825f11 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); if ( !runtil.test( name ) ) { selector = until; @@ -219,7 +224,7 @@ jQuery.each({ ret = ret.reverse(); } - return this.pushStack( ret, name, slice.call(arguments).join(",") ); + return this.pushStack( ret, name, args.join(",") ); }; });