Skip to main content

Search and Top Navigation

#5983 closed bug (notabug)

Opened August 23, 2010 11:15PM UTC

Closed August 23, 2010 11:22PM UTC

Last modified October 11, 2012 09:15PM UTC

Setting data on accordion's H3 tag causes mouseover errors

Reported by: icfantv Owned by:
Priority: major Milestone:
Component: ui.accordion Version: 1.8.4
Keywords: accordion, data, mouseover Cc:
Blocked by: Blocking:
Description

I was setting data on my accordion JQ object's H3 headers in my document.ready function when I noticed errors being spit out in my Firebug console:

e is undefined

if(!b){d=a.type.split(".");a.type=d.sh...nt view wheelDelta which".split(" "), ........

The error manifests itself when mousing over the headers after clicking on a section.

See here for demo: http://jsbin.com/irula4

Setting data on the <div> objects works fine as a workaround.

Attachments (0)
Change History (2)

Changed August 23, 2010 11:22PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

.data({}) overwrites the entire data store, which removes the event handlers. See http://dev.jquery.com/ticket/6692 for a ticket to change the behavior to what you were probably expecting. Also, see http://jsbin.com/irula4/2 for how to do what you want.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted