Chrome 10 slice bug has been fixed; remove workaround.

See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238.
This commit is contained in:
Berker Peksag 2011-11-06 16:38:26 -05:00 committed by Dave Methvin
parent 7cbd7a640f
commit 90c019de5e

View 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(",") );
};
});