Modify ↓
Ticket #9933 (closed bug: fixed)
jQuery.fn.toggle() should store state in private data object
| Reported by: | dmethvin | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7 |
| Component: | event | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
At the moment, event.js/jQuery.fn.toggle() uses jQuery.data() instead of jQuery._data() so it pollutes the user's data namespace. I've fixed this for 1.7, just need to land it.
Change History
comment:1 Changed 22 months ago by dmethvin
- Owner set to dmethvin
- Priority changed from undecided to low
- Status changed from new to assigned
- Component changed from unfiled to event
- Milestone changed from None to 1.7
comment:2 Changed 20 months ago by dmethvin
- Status changed from assigned to closed
- Resolution set to fixed
Fixed for 1.7: https://github.com/jquery/jquery/commit/5d6a1424aa182bfe25897a217550c2e585e3ed0b
Sorry about the kitchen-sink commit it's in...
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.
