Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object

This commit is contained in:
marcneuwirth 2011-06-22 04:03:55 -05:00 committed by gnarf
parent ab627e03a6
commit 5f0a2f01c4

View File

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