On 8/13/07, willi <[EMAIL PROTECTED]> wrote: > > > Hallo, > > When the "search" $() returns a lot of objects (10000), then you have > to loop twice through this objects. First for selecting the elements, > and then second when doing somthing with the elements. > > e.g. $('td').addClass('red'); // get all tabledata and do something > with them > > It would be nice if there were something when immediate when an > element was found, a "callback" function can be executed. This can > bring a lot of performance when handling a large amount of objects. > > $( expr, context ) // current > $( expr, context, fn ) // possible add on to call a function > immediately after it was found > > This may give developers the possiblity of using "Command Injection" > and "Command Chaining" together. > > Thx & regards, Willi > > Thank's to all of you for building jQuery. It's realy one of the cool > libraries where don't need a tree month course to start working with. > Just use it to do your job. I like it also because you don't need to > change your current web pages and jQuery fits to nearly every environment.
Interesting idea. I don't have the knowledge to be able to comment further, but I think you should also post this to the jquery dev list. The brainiacs there are the people you want to read this. Nice one. Joel Birch.