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 76ef152..ebe1f8c 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(