]> 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)
committerCorey Frang <gnarf@gnarf.net>
Mon, 27 Jun 2011 22:07:43 +0000 (17:07 -0500)
ui/jquery.ui.datepicker.js

index 0ce9cc6bfd0e36ed7a871c05cec8decfa93fc818..acb296fc85deca1927fd0b8baa994e80f64e6098 100644 (file)
@@ -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;
                }
        },