aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authormarcneuwirth <marc.neuwirth@gmail.com>2011-06-22 04:03:55 -0500
committerCorey Frang <gnarf@gnarf.net>2011-06-27 17:07:43 -0500
commit86a09aeb332851971bc2b2ce6bbf4d4292b12020 (patch)
tree99e2b3649fe333c33cdd5bb4dd34354050c4e4fe /ui/jquery.ui.datepicker.js
parent928abeb3b5a64b74f09b743acae70ea13de3d107 (diff)
downloadjquery-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.js3
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;
}
},