Skip to main content

Search and Top Navigation

#3238 closed bug (fixed)

Opened August 20, 2008 11:31PM UTC

Closed August 21, 2008 04:16PM UTC

Last modified November 19, 2008 04:30AM UTC

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 (0.5 KB) - added by sorpigal August 20, 2008 11:31PM UTC.

    test to reproduce reported problem

Change History (2)

Changed August 21, 2008 04:16PM UTC by kbwood comment:1

resolution: → fixed
status: newclosed

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

Changed November 19, 2008 04:30AM UTC by rdworth comment:2

milestone: TBD1.6rc1