Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#3238 closed bug (fixed)

getDate causes error if datepicker does not exist

Reported by: sorpigal Owned by: grabanski
Priority: minor Milestone: 1.6rc1
Component: ui.datepicker Version: 1.6b
Keywords: Cc:
Blocked by: Blocking:

Description

Steps to reproduce: A minimal test is attached.

Actual behavior: "elem is undefined" (FF) or "undefined is null or not an object" both on line 622 of jquery-1.2.6.js

Expected behavior: A *friendly* error message that gives some clue as to the problem or the location of the problem.

Yeah I know, JS error handling sucks. You could just check target in _getDateDatepicker for undefined and throw me a "hey, dummy!" message. That would be sufficient.

This will probably also come up for other options.

Attachments (1)

testcase.html (467 bytes) - added by sorpigal 15 years ago.
test to reproduce reported problem

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by sorpigal

Attachment: testcase.html added

test to reproduce reported problem

comment:1 Changed 15 years ago by kbwood

Resolution: fixed
Status: newclosed

Fixed. Added a catch for the error and then threw a more meaningful error.

comment:2 Changed 14 years ago by rdworth

Milestone: TBD1.6rc1
Note: See TracTickets for help on using tickets.