pushStack


  
          // Take an array of elements and push it onto the stack
          // (returning the new matched element set)
          pushStack: function( elems, name, selector ) {
                  //        <summary>
                  //                Set the jQuery object to an array of elements, while maintaining
                  //                the stack.
                  //                Part of Core
                  //        </summary>
                  //        <returns type="jQuery" />
                  //        <param name="elems" type="Elements">
                  //                An array of elements
                  //        </param>
                  
                  // Build a new jQuery matched element set
                  var ret = jQuery( elems );
  
                  // Add the old object onto the stack (as a reference)
                  ret.prevObject = this;
  
                  ret.context = this.context;
  
                  if ( name === "find" )
                          ret.selector = this.selector + (this.selector ? " " : "") + selector;
                  else if ( name )
                          ret.selector = this.selector + "." + name + "(" + selector + ")";
  
                  // Return the newly-formed element set
                  return ret;
          },
  
          // Force the current matched set of elements to become
          // the specified array of elements (destroying the stack in the process)
          // You should use pushStack() in order to do this, but maintain the stack