Skip to content

Commit

Permalink
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepick…
Browse files Browse the repository at this point in the history
…er: _selectDate restores focus to non-object
  • Loading branch information
marcneuwirth authored and gnarf committed Jun 27, 2011
1 parent 928abeb commit 86a09ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/jquery.ui.datepicker.js
Expand Up @@ -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;
}
},
Expand Down

0 comments on commit 86a09ae

Please sign in to comment.