Skip to main content

Bug Tracker

Side navigation

#1250 closed enhancement (fixed)

Opened May 28, 2007 04:45PM UTC

Closed August 31, 2007 03:26AM UTC

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:
Description

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.

Attachments (0)
Change History (1)

Changed August 31, 2007 03:26AM UTC by john comment:1

milestone: → 1.2
resolution: → fixed
status: newclosed
version: → 1.1.4

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