Fixed 3165 Invalid comparison in _changeDatepicker

This commit is contained in:
Keith Wood 2008-08-08 10:38:35 +00:00
parent edd4ab0ccd
commit 23d3469355

View 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);
}