Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3936 closed bug (fixed)

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...".

Change History (1)

comment:1 Changed 10 years ago by dmethvin

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

Note: See TracTickets for help on using tickets.