]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate...
authormarcneuwirth <marc.neuwirth@gmail.com>
Wed, 22 Jun 2011 09:03:55 +0000 (04:03 -0500)
committergnarf <gnarf@gnarf.net>
Wed, 22 Jun 2011 09:03:55 +0000 (04:03 -0500)
ui/jquery.ui.datepicker.js

index ee0a86338a6566e9e98863cbc0f4da7b5004d645..1d3de7740cd327aefb7592f698fd317fe07866f6 100644 (file)
@@ -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;
                }
        },