Bug Tracker

Opened 16 years ago

Closed 15 years ago

#1250 closed enhancement (fixed)

Provide jQuery.map with proper scope

Reported by: blairmitchelmore Owned by:
Priority: trivial Milestone: 1.2
Component: core Version: 1.1.4
Keywords: Cc:
Blocked by: Blocking:


Currently jQuery.map calls its mapping function plainly (ie "var val = fn(elems[i],i);"). If the scope of the function were adjusted to be that of the array we are mapping (ie "var val = fn.call(elems,elems[i],i);") then it would open up some interesting possibilities for jQuery.map usage.

Change History (1)

comment:1 Changed 15 years ago by john

Milestone: 1.2
Resolution: fixed
Status: newclosed
Version: 1.1.4

Fixed in SVN rev [3018] by adding the new $(...).map() method.

Note: See TracTickets for help on using tickets.