Side navigation
#5771 closed feature (fixed)
Opened January 07, 2010 07:24PM UTC
Closed January 07, 2010 07:25PM UTC
Add Support for .foo(function(i, val))
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | core | Version: | 1.4a2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Right now some methods just get 'i' - they should all get 'i' (like .each) and should get the previous value, where possible.
Attachments (0)
Change History (1)
Changed January 07, 2010 07:25PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
type: | enhancement → feature |
Fixed (and over the next quite a few patches):
http://github.com/jquery/jquery/commit/600d3145386a9dca8143918cc3e339168f886a63
The following methods have this new functionality: css, attr, val, html, text, append, prepend, addClass, removeClass, toggleClass, and offset.