Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8.

This reverts commit 5f0a2f01c4.
This commit is contained in:
Scott González
2011-08-10 07:55:19 -04:00
parent 7c7d3df8e7
commit bb79b41871

View File

@@ -934,7 +934,8 @@ $.extend(Datepicker.prototype, {
else {
this._hideDatepicker();
this._lastInput = inst.input[0];
inst.input.focus(); // restore focus
if (typeof(inst.input[0]) != 'object')
inst.input.focus(); // restore focus
this._lastInput = null;
}
},