aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradam j. sontag <ajpiano@ajpiano.com>2011-01-17 16:10:14 -0500
committeradam j. sontag <ajpiano@ajpiano.com>2011-01-17 16:10:14 -0500
commit28a1bad7b18b7ca4937666893e268d6e1378ee4f (patch)
tree1b0edc28e9cf6df272b97cf73631fc8d9b43ca09
parentf01ef93aab1d2e90efbcacc71b01180f7f33656b (diff)
downloadjquery-28a1bad7b18b7ca4937666893e268d6e1378ee4f.tar.gz
jquery-28a1bad7b18b7ca4937666893e268d6e1378ee4f.zip
Add a comment to explain (and enforce the temporary-ness of) an extra line of code added to workaround a Chrome 10 bug
-rw-r--r--src/traversing.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/traversing.js b/src/traversing.js
index b36ce3db8..ee1d78b0e 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -204,6 +204,9 @@ 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/52a02383fa521c51d9996a46f03a7080dd825f11
+ // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
args = slice.call(arguments);
if ( !runtil.test( name ) ) {