Modify ↓
Ticket #6134 (closed bug: duplicate)
data() now returns null on "no data"
| Reported by: | Christoph | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.2 | |
| Component: | data | Version: | 1.4.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The update from jquery 1.4.1 to 1.4.2 broke my code. I found out that the data() function is in 1.4.2 returning null, if there is no data. In the release 1.4.1 it returned undefined.
I was wondering about Ticket #5971, where 3 weeks ago it describes this issue turned around.
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.

The same thing here - this change broke a lot of existing scripts.