Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#5983 closed bug (notabug)

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.

Change History (2)

comment:1 Changed 9 years ago by Scott González

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.

comment:2 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.