From: marcneuwirth Date: Wed, 22 Jun 2011 09:03:55 +0000 (-0500) Subject: Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate... X-Git-Tag: 1.9m6~98^2~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f0a2f01c4609315ab66158191d3f9bd420f827f;p=jquery-ui.git Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index ee0a86338..1d3de7740 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -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; } },