On Oct 31, 12:15 am, "Arnar Birgisson" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 30, 2008 at 18:57, Per Cederberg <[EMAIL PROTECTED]> wrote: > > Arnar: I didn't include the Selector module in the list since it > > doesn't change theAPI. But naturally, the updates to Selector will > > probably be one of the big features in 1.5. > > There will actually be a minorAPIchange, the Selector.Selector > prototype will go away. Maybe we should also expose the Sizzle > prototype instead.
It took me a while to figure this out, but at the moment I can do: var selector = new MochiKit.Selector.Selector('*'); selector.findElements(myElement, '~'); To find right hand siblings of myElement (which doesn't have an id in this case) If this is going away in 1.5, it would be nice to be able to do: MochiKit.Selector.findRelativeTo(myElement, '~ *'); which (if the element had an id) would be equivalent to the current: MochiKit.Selector.findDocElements('#myElementId ~ *'); Eoghan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---