chernikovalexey/Prevel — pull request #21 by herbdaily (2012-02-05 02:11:14+00:00)
Title: selectedBy

Hey Alexey,

Please have a look at this function. I think it belongs in the pl core source because it enables additional functionality from other methods (so `parent` and `children` for example could take a selector argument and return only the matching elements).

I think it's pretty good bang for the buck in terms of functionality per byte of code. Buit rather than put all of this in the pull request, I just added the one function so you can decide whether or not to include it and where to include it.

Thanks,

-Herb