Bug Tracker

Modify

Ticket #7163 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by john

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

This was resolved in jQuery 1.4.3.

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.