X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ftraversing.js;h=929547c11d5f28e56766a28952a3ad89af02fb83;hb=265cf0efa7ab3296b3fc4917b863d7b09e3d8bb4;hp=e169be084231373ead81607f15ab2ba33f6ba4d5;hpb=e5ee89ec9a11804b39e9722f47eeeb00648f37ea;p=jquery.git diff --git a/src/traversing.js b/src/traversing.js index e169be0..929547c 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(",") ); }; });