diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2011-11-06 16:38:26 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-11-06 16:38:26 -0500 |
commit | 90c019de5efb63b13c4ac9b29de06bac7eb9ffdc (patch) | |
tree | d04ed3f5102cf49d11612d2bdb728be424675d62 | |
parent | 7cbd7a640fb6590b0eb7cbedd83a8d46eb553c5a (diff) | |
download | jquery-90c019de5efb63b13c4ac9b29de06bac7eb9ffdc.tar.gz jquery-90c019de5efb63b13c4ac9b29de06bac7eb9ffdc.zip |
Chrome 10 slice bug has been fixed; remove workaround.
See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238.
-rw-r--r-- | src/traversing.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/traversing.js b/src/traversing.js index e72335ecb..a62bbfeb6 100644 --- a/src/traversing.js +++ b/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(",") ); }; }); |