Skip to main content

Bug Tracker

Side navigation

#2486 closed bug (fixed)

Opened March 11, 2008 12:58PM UTC

Closed March 11, 2008 03:26PM UTC

jQuery.map() string as callback parameter is broken

Reported by: flexer Owned by:
Priority: critical Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: map Cc:
Blocked by: Blocking:
Description

If the argument is a string, it is treated as a short "lambda-form" function, with "a" representing the list item. For example, "a * a" may be passed instead of "function(a){ return a * a; }".

This is broken even in the docs Demo: http://docs.jquery.com/Utilities/jQuery.map

Attachments (0)
Change History (1)

Changed March 11, 2008 03:26PM UTC by davidserduke comment:1

resolution: → fixed
status: newclosed

Thanks for pointing that out. The demo has been fixed.

For more information about why this feature was removed see #2402.