Modify ↓
Ticket #10754 (closed bug: fixed)
have jQuery.swap return the return of the callback instead of just executing it
| Reported by: | mikesherov | Owned by: | mikesherov |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7.2 |
| Component: | css | Version: | 1.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In all of it's uses, a return val would be more appropriate than modifying a variable from the outer scope.
Change History
comment:3 Changed 18 months ago by timmywil
- Owner set to mikesherov
- Priority changed from undecided to low
- Status changed from new to assigned
- Component changed from unfiled to css
- Milestone changed from None to 1.7.2
Yes, good call.
comment:4 Changed 18 months ago by Mike Sherov
- Status changed from assigned to closed
- Resolution set to fixed
Fix #10754. Have jQuery.swap() return the value of its callback.
Changeset: 2c1d2b1a4dc74c6487d9f5dd0ecafd34358163a1
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

https://github.com/jquery/jquery/pull/592