Commit 52a02383 authored by wycats's avatar wycats

Fix a strange Chrome issue

parent fa45f25d
...@@ -196,7 +196,8 @@ jQuery.each({ ...@@ -196,7 +196,8 @@ jQuery.each({
} }
}, function( name, fn ) { }, function( name, fn ) {
jQuery.fn[ name ] = function( until, selector ) { 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 ) ) { if ( !runtil.test( name ) ) {
selector = until; selector = until;
...@@ -212,7 +213,7 @@ jQuery.each({ ...@@ -212,7 +213,7 @@ jQuery.each({
ret = ret.reverse(); ret = ret.reverse();
} }
return this.pushStack( ret, name, slice.call(arguments).join(",") ); return this.pushStack( ret, name, args.join(",") );
}; };
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment