Merge branch 'master' of https://github.com/scottgonzalez/jquery
[jquery.git] / src / traversing.js
index e169be0..b36ce3d 100644 (file)
@@ -203,7 +203,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;
@@ -219,7 +220,7 @@ jQuery.each({
                        ret = ret.reverse();
                }
 
-               return this.pushStack( ret, name, slice.call(arguments).join(",") );
+               return this.pushStack( ret, name, args.join(",") );
        };
 });