X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Ftraversing.js;h=90601df55cddfeb8d2e535674f132d1f0d8b787a;hp=c54e254304733ef4508eae890abaef9e4a6e1774;hb=9d306bd73bb47562cd52f0fc4cc158c534cfdfdf;hpb=4058881784cec4adad881188064421ded69a0258 diff --git a/src/traversing.js b/src/traversing.js index c54e254..90601df 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 ); @@ -205,10 +205,10 @@ jQuery.each({ 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 + // 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); + args = slice.call(arguments); if ( !runtil.test( name ) ) { selector = until;