mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
7cbd7a640f
commit
90c019de5e
@ -216,12 +216,7 @@ 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 );
|
||||||
// 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);
|
|
||||||
|
|
||||||
if ( !runtil.test( name ) ) {
|
if ( !runtil.test( name ) ) {
|
||||||
selector = until;
|
selector = until;
|
||||||
@ -237,7 +232,7 @@ jQuery.each({
|
|||||||
ret = ret.reverse();
|
ret = ret.reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.pushStack( ret, name, args.join(",") );
|
return this.pushStack( ret, name, slice.call( arguments ).join(",") );
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user