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 Corey Frang
parent 928abeb3b5
commit 86a09aeb33

View File

@ -919,8 +919,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;
}
},