Side navigation
#3134 closed bug (duplicate)
Opened July 06, 2008 02:22PM UTC
Closed July 23, 2008 04:20PM UTC
Tweak to .isFunction
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Based upon discussion in jQuery-dev, a tweak to the isFunction method to make it more robust.
It will no longer fail in cases like this:
function Test(){} Test.toString = function(){ return "Test"; };
Hi, I started following the jquery-dev list and thought I could help for this one.
First, I will attach a patch to add the two failing tests to the jQuery unit tests.
Then, I should add that applying the current patch seems to be breaking a lot of unit tests right now. I will be investigating the issue.