On Mon, Jul 27, 2009 at 8:41 PM, Andrea Giammarchi < andrea.giammar...@gmail.com> wrote:
> wow, all this stuff sonds like a path finder AI algo a la "A*" (A Star) in > a mono column grid with optional context as obstacle in the north direction > ... did anybody of us think about some algo to quickly map the DOM in a 3D > space? ... seriously, nested nodes are up in the Z scale, documentElement is > the floor, and z-index a part, which is virtual, I would not be surprised if > tomorrow somebody will splash down the DOM finding quickest way to relate > nodes and distances ( sorry, I guess this glass of wine is not that good ) on a side note, I just implemented a 'visually closest' selector for the new jQuery UI selectables, and yes, sometimes it is in fact needed :P > > > Regards > > > On Fri, Jul 24, 2009 at 2:39 PM, mike.helgeson <mike.helge...@gmail.com>wrote: > >> >> Alright, the context sounds good, pardon my confusion. >> >> On Jul 23, 2:59 pm, John Resig <jere...@gmail.com> wrote: >> > > It will make the specific context >> > > required anytime raw nodes are used >> > >> > Hmm... no it won't? >> > >> > $( event.target ).closest(".foo"); // will still work, starts at >> > event.target. goes up to documentElement >> > $( event.target, context ).closest(".foo") // starts at event.target, >> > doesn't go higher than context >> > >> > The case of $(DOMElement, DOMElement) doesn't exist yet, thus it won't >> be >> > breaking any existing code. On the other hand, the case of $(String, >> > DOMElement) will probably just run faster (since it'll be limited by the >> > DOMElement context). >> > >> > --John >> >> > > > > -- Paul Bakaus UI Architect @ smart.fm -- http://paulbakaus.com http://www.linkedin.com/in/paulbakaus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---