]> source.dussan.org Git - jquery.git/commitdiff
Fix a strange Chrome issue
authorwycats <wycats@gmail.com>
Fri, 14 Jan 2011 16:21:45 +0000 (11:21 -0500)
committerwycats <wycats@gmail.com>
Fri, 14 Jan 2011 16:21:45 +0000 (11:21 -0500)
src/traversing.js

index 689e90196ab27905b726a9a708390d374601829d..8187357e7ac7173255992fb3f7f794f24f0de9cc 100644 (file)
@@ -196,7 +196,8 @@ 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 ),
+        args = slice.call(arguments);
 
                if ( !runtil.test( name ) ) {
                        selector = until;
@@ -212,7 +213,7 @@ jQuery.each({
                        ret = ret.reverse();
                }
 
-               return this.pushStack( ret, name, slice.call(arguments).join(",") );
+               return this.pushStack( ret, name, args.join(",") );
        };
 });