Bug Tracker

Opened 9 years ago

Closed 9 years ago

#7163 closed bug (worksforme)

Calling data() on an empty set throws "TypeError: a is undefined"

Reported by: Tgr Owned by:
Priority: undecided Milestone: 1.4.3
Component: data Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

Calling $('noSuchElement').data() throws a type error in jQuery 1.4.2. I do not have an unminified version at hand, in the minified version Firebug indicates line 39.

Change History (1)

comment:1 Changed 9 years ago by john

Resolution: worksforme
Status: newclosed

This was resolved in jQuery 1.4.3.

Note: See TracTickets for help on using tickets.