aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcneuwirth <marc.neuwirth@gmail.com>2011-06-22 04:03:55 -0500
committergnarf <gnarf@gnarf.net>2011-06-22 04:03:55 -0500
commit5f0a2f01c4609315ab66158191d3f9bd420f827f (patch)
tree4a261042d104858d9e573dc4c78d4690f7a933f0
parentab627e03a6a37cbf3291e9600f5482bd50991360 (diff)
downloadjquery-ui-5f0a2f01c4609315ab66158191d3f9bd420f827f.tar.gz
jquery-ui-5f0a2f01c4609315ab66158191d3f9bd420f827f.zip
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object
-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 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;
}
},