diff options
author | marcneuwirth <marc.neuwirth@gmail.com> | 2011-06-22 04:03:55 -0500 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2011-06-27 17:07:43 -0500 |
commit | 86a09aeb332851971bc2b2ce6bbf4d4292b12020 (patch) | |
tree | 99e2b3649fe333c33cdd5bb4dd34354050c4e4fe /ui/jquery.ui.datepicker.js | |
parent | 928abeb3b5a64b74f09b743acae70ea13de3d107 (diff) | |
download | jquery-ui-86a09aeb332851971bc2b2ce6bbf4d4292b12020.tar.gz jquery-ui-86a09aeb332851971bc2b2ce6bbf4d4292b12020.zip |
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 0ce9cc6bf..acb296fc8 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -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; } }, |