]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 -...
authorScott González <scott.gonzalez@gmail.com>
Wed, 10 Aug 2011 11:58:17 +0000 (07:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 10 Aug 2011 11:58:17 +0000 (07:58 -0400)
This reverts commit 86a09aeb332851971bc2b2ce6bbf4d4292b12020.

ui/jquery.ui.datepicker.js

index 4177587569a755a6fb4895eb06c99286be45e88e..a0b81e86a5dac8689ea85c176981f79ebac0df13 100644 (file)
@@ -930,7 +930,8 @@ $.extend(Datepicker.prototype, {
                else {
                        this._hideDatepicker();
                        this._lastInput = inst.input[0];
-                       inst.input.focus(); // restore focus
+                       if (typeof(inst.input[0]) != 'object')
+                               inst.input.focus(); // restore focus
                        this._lastInput = null;
                }
        },