[jQuery] Re: Selectors & Context

2007-06-20 Thread Jörn Zaefferer
> Doh! Thank you... No problem :-) -- Jörn Zaefferer http://bassistance.de

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jonathan Sharp
On 6/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Jonathan Sharp wrote: > On 6/20/07, *Jörn Zaefferer* <[EMAIL PROTECTED] > > wrote: > > > Jonathan Sharp wrote: > > I have the following: > > > > $('').find('.foo').doSomething(); > Why not simply

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jörn Zaefferer
Jonathan Sharp wrote: On 6/20/07, *Jörn Zaefferer* <[EMAIL PROTECTED] > wrote: Jonathan Sharp wrote: > I have the following: > > $('').find('.foo').doSomething(); Why not simply this? Well, the actual implementation is a little more complex. Bu

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jonathan Sharp
On 6/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Jonathan Sharp wrote: > I have the following: > > $('').find('.foo').doSomething(); Why not simply this? Well, the actual implementation is a little more complex. But basically it can be expanded to: $('').foo().bar(); $.fn.foo = functi

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jörn Zaefferer
Jonathan Sharp wrote: I have the following: $('').find('.foo').doSomething(); Why not simply this? $('').doSomething(); -- Jörn Zaefferer http://bassistance.de