[jQuery] $(selector, context) changes in latest release?

[jQuery] $(selector, context) changes in latest release?

Hi,
I'm just trying to update my date picker plugin [1] to the latest
version of jQuery (rev. 152) and am having some issues. From a quick
check, they seem to be coming from a call to $(selector, context). I
remember reading something on this list about an optional third
parameter to the $ function being added in the new version but I can't
find it now and I'm wondering if it could be related?
Otherwise, here is the code that worked on rev. 88 and doesn't work on
rev. 152:
$.fn.findClosestParent = function(s)
{
    var ele = this;
    while (true) {
        if ($(s, ele).size() > 0) {
            return (ele);
        }
        ele = ele.parent();
        if(ele.cur.length == 0) {
            return false;
        }
    }
}
Basically, what I want to be able to do is starting from a given element
work my way up through the DOM returning the first parent element which
has a child matching the CSS selector s. Maybe there is an easier way?
Thanks for any help,
Kelvin :)
[1] http://kelvinluck.com/assets/jquery/datePicker/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/