DatePicker: datepicker_instActive released on instance destroy

Fixes #10668
Closes gh-1362
This commit is contained in:
Chen Eshchar 2014-10-19 09:37:21 +03:00 committed by TJ VanToll
parent c0df7b0138
commit e5e3ca4240

View File

@ -389,6 +389,10 @@ $.extend(Datepicker.prototype, {
} else if (nodeName === "div" || nodeName === "span") { } else if (nodeName === "div" || nodeName === "span") {
$target.removeClass(this.markerClassName).empty(); $target.removeClass(this.markerClassName).empty();
} }
if ( datepicker_instActive === inst ) {
datepicker_instActive = null;
}
}, },
/* Enable the date picker to a jQuery selection. /* Enable the date picker to a jQuery selection.