]> 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:55:19 +0000 (07:55 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 10 Aug 2011 11:55:19 +0000 (07:55 -0400)
This reverts commit 5f0a2f01c4609315ab66158191d3f9bd420f827f.

ui/jquery.ui.datepicker.js

index 3b8caa59b64212cdc6e8ecefb46bf91128b75fe5..0b6fb2218b3d34b6c3a6c3623c446b97eb4e0cd8 100644 (file)
@@ -934,7 +934,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;
                }
        },