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: |
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).