Skip to main content

Bug Tracker

Side navigation

#5092 closed bug (fixed)

Opened August 21, 2009 04:40PM UTC

Closed June 25, 2010 02:26AM UTC

data('events', value) removes all jquery events bound to element

Reported by: barelyfitz Owned by: brandon
Priority: minor Milestone: 1.4
Component: event Version: 1.3.2
Keywords: data events Cc:
Blocked by: Blocking:

$('#id').data('events') shows all the jquery events bound to an element.

Users might inadvertently remove the events by setting that data value: $('#id').data('events', 'cookout')

This should either be noted in the documentation for .data() (name 'events' is reserved), or another name should be used to prevent possible conflict ('underscore events' or something less common).

Attachments (0)
Change History (2)

Changed August 23, 2009 12:34AM UTC by dmethvin comment:1

component: unfilledevent
owner: → brandon

Changed June 25, 2010 02:26AM UTC by dmethvin comment:2

resolution: → fixed
status: newclosed

In 1.4.2, events were moved out of the