Opened 13 years ago
Closed 13 years ago
#5092 closed bug (fixed)
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: |
Description
$('#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).
Change History (2)
comment:1 Changed 13 years ago by
Component: | unfilled → event |
---|---|
Owner: | set to brandon |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 1.4.2, events were moved out of the
.data()
space.