]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed 3165 Invalid comparison in _changeDatepicker
authorKeith Wood <kbwood.au@gmail.com>
Fri, 8 Aug 2008 10:38:35 +0000 (10:38 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Fri, 8 Aug 2008 10:38:35 +0000 (10:38 +0000)
ui/ui.datepicker.js

index 4a1892698aeba7f167f42d17312c4c80cc486f13..da8f89cd2cd96479d7b0919d4604c467f770c52f 100644 (file)
@@ -398,7 +398,8 @@ $.extend(Datepicker.prototype, {
                        settings = {};
                        settings[name] = value;
                }
-               if (inst = $.data(target, PROP_NAME)) {
+               var inst = $.data(target, PROP_NAME);
+               if (inst) {
                        if (this._curInst == inst) {
                                this._hideDatepicker(null);
                        }