Skip to main content

Bug Tracker

Side navigation

#3936 closed bug (fixed)

Opened January 21, 2009 12:07PM UTC

Closed January 22, 2009 01:42AM UTC

Documentation for isFunction should specify what it works for

Reported by: olau Owned by:
Priority: major Milestone: 1.3.1
Component: unfiled Version: 1.3
Keywords: Cc:
Blocked by: Blocking:
Description

This is very easy to fix, I guess. I think it would be useful if the description of $.isFunction would specify what it positively does work for instead of just an example of what it doesn't work for. :)

Something like "It's guaranteed to work for blabla...".

Attachments (0)
Change History (1)

Changed January 22, 2009 01:42AM UTC by dmethvin comment:1

resolution: → fixed
status: newclosed

I did some edits to the page.

http://docs.jquery.com/Utilities/jQuery.isFunction

If you are interested in why typeof(x)=="function" isn't sufficient, this thread will tell you more than you ever wanted to know.

http://groups.google.com/group/jquery-dev/browse_frm/thread/6cdececc7bec8194/25b22aac17cdf48b?#25b22aac17cdf48b