aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2011-01-14 11:21:45 -0500
committerwycats <wycats@gmail.com>2011-01-14 11:21:45 -0500
commit52a02383fa521c51d9996a46f03a7080dd825f11 (patch)
tree16d37509db4e6ea9691c78b8e38e3715ef40391c /src
parentfa45f25d1c554663f696c43bb1d08d24fec6abf5 (diff)
downloadjquery-52a02383fa521c51d9996a46f03a7080dd825f11.tar.gz
jquery-52a02383fa521c51d9996a46f03a7080dd825f11.zip
Fix a strange Chrome issue
Diffstat (limited to 'src')
-rw-r--r--src/traversing.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/traversing.js b/src/traversing.js
index 689e90196..8187357e7 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -196,7 +196,8 @@ jQuery.each({
}
}, function( name, fn ) {
jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
+ var ret = jQuery.map( this, fn, until ),
+ args = slice.call(arguments);
if ( !runtil.test( name ) ) {
selector = until;
@@ -212,7 +213,7 @@ jQuery.each({
ret = ret.reverse();
}
- return this.pushStack( ret, name, slice.call(arguments).join(",") );
+ return this.pushStack( ret, name, args.join(",") );
};
});