From: Berker Peksag Date: Sun, 6 Nov 2011 21:38:26 +0000 (-0500) Subject: Chrome 10 slice bug has been fixed; remove workaround. X-Git-Tag: 1.7.1rc1~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=90c019de5efb63b13c4ac9b29de06bac7eb9ffdc;p=jquery.git Chrome 10 slice bug has been fixed; remove workaround. See: http://code.google.com/p/v8/issues/detail?id=1050 Discussion: jquery/jquery@52a0238. --- diff --git a/src/traversing.js b/src/traversing.js index e72335ecb..a62bbfeb6 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -216,12 +216,7 @@ jQuery.each({ } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { - 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); + var ret = jQuery.map( this, fn, until ); if ( !runtil.test( name ) ) { selector = until; @@ -237,7 +232,7 @@ jQuery.each({ ret = ret.reverse(); } - return this.pushStack( ret, name, args.join(",") ); + return this.pushStack( ret, name, slice.call( arguments ).join(",") ); }; });