Could someone please update the nightly? http://code.jquery.com/jquery-nightly.js It still contains this closest issue (rev. 6507).
On Jul 28, 10:05 am, John Resig <jere...@gmail.com> wrote: > > Is there any specific reason that context is set to the element for > > $(elem)? > > Could it not be document unless an alternative is given: $(elem, context) > > > Index: src/core.js > > =================================================================== > > --- src/core.js (revision 6520) > > +++ src/core.js (working copy) > > @@ -53,7 +53,8 @@ > > > // Handle $(DOMElement) > > if ( selector.nodeType ) { > > - this.context = this[0] = selector; > > + this[0] = selector; > > + this.context = context || document; > > this.length++; > > return this; > > } > > I don't think that would work since $(foo, DOMElement) wouldn't have a > context set. It would require a little more tweaking in order to get to a > solid state. It's ok though, it's already been backed out. > > --John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---