Permalink
Browse files

Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepick…

…er: _selectDate restores focus to non-object
  • Loading branch information...
1 parent ab627e0 commit 5f0a2f01c4609315ab66158191d3f9bd420f827f @marcneuwirth marcneuwirth committed with gnarf Jun 22, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 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;
}
},

0 comments on commit 5f0a2f0

Please sign in to comment.