extending jQuery.expr.filter.CLASS

extending jQuery.expr.filter.CLASS

Hi!

We use the HTML class attribute to give the JS access to parameters. For example a class="cssclass jsclass(a=b;b=c) cssclass2" can be read by a script using something like $("element").filter(".jsclass").getParameters().

To achieve this we extended jQuery.expr.filter.CLASS to match classname( too. That worked fine in 1.4.x and with a slight modification it works in 1.8.x too.

But when I override the default behavior of jQuery.expr.filter.CLASS, I loose the classCache because it is a local variable. The only way, I could think of so far, is modifying the Sizzle code, but that's a bad idea. Is there another way to access the classCache of the Sizzle-engine from my plugin so that I can benefit from the performance boost the cache gives?

Thanks for your help!

Martin.