Ticket #3238 (closed bug: fixed)
getDate causes error if datepicker does not exist
|Reported by:||sorpigal||Owned by:||grabanski|
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.