Bug Tracker

Modify

Ticket #6134 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by qoobaa

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

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate

Fixed in #6166.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.