]> source.dussan.org Git - jquery.git/commitdiff
Chrome 10 slice bug has been fixed; remove workaround.
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 6 Nov 2011 21:38:26 +0000 (16:38 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Sun, 6 Nov 2011 21:38:26 +0000 (16:38 -0500)
See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238.

src/traversing.js

index e72335ecb11202f52e3c057a12b47f32137df660..a62bbfeb691a9ac1dfdda6a1d5d486e80f928ffa 100644 (file)
@@ -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(",") );
        };
 });