Commit 90c019de authored by Berker Peksag's avatar Berker Peksag Committed by Dave Methvin

Chrome 10 slice bug has been fixed; remove workaround.

See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238.
parent 7cbd7a64
...@@ -216,12 +216,7 @@ jQuery.each({ ...@@ -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({ ...@@ -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(",") );
}; };
}); });
......
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