Hi
> if( jQuery.parse2RE == 0 ) {
> // this is the first call to filter_opt, so
> // replace S and T macros in the parse2 regexps
> var S = "([a-z*_-][\\w-]*)";
You can not be shure that a JavaScript Engine is not threaded. This code is
not threadsave. Imagine the following situation:
Thread 1 Thread 2
$.filter()
parse2RE is set to e.g. 1
Thread is stopped by OS Sceduler -> $.filter()
jQuery.parse2RE != 0 !!
That kind of problems is very problematic, because they are timing-dependant
and may or may not occur on each run. Maybe you can find a way to use an
additional Parameter for that.
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/