X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ftraversing.js;h=fe2e33d88a257c252d6b560b56143a57ee12f034;hb=5d9db486c774c10293d0813c89dfdbd973120030;hp=ee1d78b0eebae4052f3c8a2a72b1986e733f8488;hpb=28a1bad7b18b7ca4937666893e268d6e1378ee4f;p=jquery.git diff --git a/src/traversing.js b/src/traversing.js index ee1d78b..fe2e33d 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -141,7 +141,7 @@ jQuery.fn.extend({ add: function( selector, context ) { var set = typeof selector === "string" ? - jQuery( selector, context || this.context ) : + jQuery( selector, context ) : jQuery.makeArray( selector ), all = jQuery.merge( this.get(), set ); @@ -204,10 +204,11 @@ 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); + // 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 ) ) { selector = until;