X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=118b4148756141428e64a525f2751abad5b5bc88;hb=51d05922112851babbeeebb65c8835f4ead82d1f;hp=76ef152a21ec6eac3c6e9efb5189823696956ff1;hpb=67c640bb206d0c8b16042c0981fb25540ee47bdf;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 76ef152..118b414 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -166,12 +166,8 @@ jQuery.fn = jQuery.prototype = { a = jQuery.clean( [ m[1] ] ); // HANDLE: $(expr) - else { - var r = new jQuery( c ).find( a ); - r.selector = a; - r.context = c; - return r; - } + else + return new jQuery( c ).find( a ); } return this.setArray( @@ -1803,7 +1799,7 @@ new function() { // Figure out what browser is being used jQuery.browser = { - version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1], + version: b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1], safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b),