Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This was resolved in jQuery 1.4.3.