Extensible filters
Extensible filters
One thing I really love about jQuery is the ability to extend it easily. Like adding a new jQuery.expr which I have used to match special attribute to interface usage on my site. After creating a new filter for the subselector I realized that it could not be used with out patching jQuery, making it useless/difficult for less advanced users or people with limited access to servers. I whipped up this patch to add a filters array (jQuery.filters) containing function to check the collection againts filtering paramaters and either returning the modified set or the original. This is a quick and dirty hack to show that is can be done. Performance hit appears to be next to none. Woot for jQuery again! Here's the patch.<br clear="all">
--
<a href="http://morglog.alleycatracing.com">http://morglog.alleycatracing.com</a>
Lets make up more accronyms!
<a href="http://www.alleycatracing.com">http://www.alleycatracing.com</a>
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity.