]> source.dussan.org Git - jquery.git/commitdiff
removing the context and selector properties that I left in jQuery.prototype.init
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 2 May 2007 02:41:57 +0000 (02:41 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 2 May 2007 02:41:57 +0000 (02:41 +0000)
src/jquery/jquery.js

index 76ef152a21ec6eac3c6e9efb5189823696956ff1..ebe1f8c5feb13ef9ed28df0551ea981c34f205fd 100644 (file)
@@ -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(