Skip to content
Permalink
Browse files

Chrome 10 slice bug has been fixed; remove workaround.

  • Loading branch information...
berkerpeksag authored and dmethvin committed Nov 6, 2011
1 parent 7cbd7a6 commit 90c019de5efb63b13c4ac9b29de06bac7eb9ffdc
Showing with 2 additions and 7 deletions.
  1. +2 −7 src/traversing.js
@@ -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(",") );
};
});

0 comments on commit 90c019d

Please sign in to comment.
You can’t perform that action at this time.