Google Groups Home
Help | Sign in
Message from discussion Extensible filters
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Morgan Allen  
View profile
 More options May 12, 1:53 pm
From: "Morgan Allen" <morganral...@gmail.com>
Date: Mon, 12 May 2008 10:53:33 -0700
Local: Mon, May 12 2008 1:53 pm
Subject: Re: Extensible filters

That last patch had a error if using nth-child, it did not return the
unmodified element set if the if() failed. Here is the corrected patch.

On Mon, May 12, 2008 at 9:36 AM, Morgan Allen <morganral...@gmail.com>
wrote:

> 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.

> --
> http://morglog.alleycatracing.com
> Lets make up more accronyms!

> http://www.alleycatracing.com
> LTABOTIIOFR! ROFL! ROFL! ROFL!
> Upcoming alley cats, reviews, touring logs, and a general congregation of
> bike nerdity.

--
http://morglog.alleycatracing.com
Lets make up more accronyms!

http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.

  extensibleFilters.diff
7K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google