X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ftraversing.js;h=f41816cfdb39ae9570c14214c90525407d1ec009;hb=78be517727674d1e0a208e3e144eac8840d653e7;hp=e169be084231373ead81607f15ab2ba33f6ba4d5;hpb=e5ee89ec9a11804b39e9722f47eeeb00648f37ea;p=jquery.git diff --git a/src/traversing.js b/src/traversing.js index e169be0..f41816c 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/52a0238 + // 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(",") ); }; });