kylebarrow / chibi

A tiny JavaScript micro-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$().find use a function as filter

enzoz opened this issue · comments

hi Kyle

There's any possibility find use a function as parameter using to filter nodes?
Something like this:

var foundElements = $("div").find( function(node) { 
// do something awesome here....
});

I'm looking at the possibility of a loop method in 0.9 which should fulfil this functionality.

interesting, I've cloned the project on my machine and made a stupid implementation to supply this need, but I'll be waiting fot it on v0.9 :)

Thanks a lot.

The loop method has been added to 0.9. I hope this is what you were after.