kiltjs / jqlite

Tiny JavaScript DOM query library that uses pure CSS selectors
MIT License
100 stars 19 forks source link

add .prev() , .prevAll() , .siblings() functions #24

Closed RongBranovate closed 9 years ago

RongBranovate commented 9 years ago

Hi, is it possible to add the ..prev() , .prevAll() , .siblings() functions to jqlite?

Will help a lot with DOM manipulation...

Thanks in advance.

jgermade commented 9 years ago

sure, seems to be useful same level selectors!

thanks @RongBranovate !!

RongBranovate commented 9 years ago

Awesome! I personally would love to get .prevAll() first if that's possible ;)

jgermade commented 9 years ago

Hi @RongBranovate, this features has been added. Also needs some unit tests but are tested in browser with the expected behavior.

Thanks as always!!

RongBranovate commented 9 years ago

Awesome! thanks!