Skip to main content

Bug Tracker

Side navigation

#9933 closed bug (fixed)

Opened July 28, 2011 08:16PM UTC

Closed September 20, 2011 01:24PM UTC

Last modified March 08, 2012 05:57PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed July 28, 2011 08:16PM UTC by dmethvin comment:1

component: unfiledevent
milestone: None1.7
owner: → dmethvin
priority: undecidedlow
status: newassigned

Changed September 20, 2011 01:24PM UTC by dmethvin comment:2

resolution: → fixed
status: assignedclosed

Fixed for 1.7: https://github.com/jquery/jquery/commit/5d6a1424aa182bfe25897a217550c2e585e3ed0b

Sorry about the kitchen-sink commit it's in...