[jQuery] isFunction change in 1.3 and window.opener

[jQuery] isFunction change in 1.3 and window.opener


Hello,
We've recently upgraded jQuery to 1.3. I've read about the changes to
the isFunction method and have run into a problem. Our site has a
couple of popup windows that, on completion, call back into the parent
window. As such, we had code like this:
var openerFunc = window.opener.pickComplete;
if ($.isFunction(openerFunc))
openerFunc.call(this, rowid(row));
window.close();
In 1.2.6, the isFunction call would return true if the function
existed in the parent. In 1.3, this returns false, because of the
typeof of the "openerFunc", once-removed and located in the parent
window, will be "object", not "function".
Any workaround for this? Should I just plug in the 1.2 isFunction
implementation and call it instead? I understand it had some flaws,
but at least it would provide some check for a use case like this.
Regards,
- Mike