From: Chen Eshchar Date: Sun, 19 Oct 2014 06:37:21 +0000 (+0300) Subject: DatePicker: datepicker_instActive released on instance destroy X-Git-Tag: 1.12.0-beta.1~503 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5e3ca4240fbae9684f689ec6e00882ec0211922;p=jquery-ui.git DatePicker: datepicker_instActive released on instance destroy Fixes #10668 Closes gh-1362 --- diff --git a/ui/datepicker.js b/ui/datepicker.js index d3fe3dd1f..34ffc578e 100644 --- a/ui/datepicker.js +++ b/ui/datepicker.js @@ -389,6 +389,10 @@ $.extend(Datepicker.prototype, { } else if (nodeName === "div" || nodeName === "span") { $target.removeClass(this.markerClassName).empty(); } + + if ( datepicker_instActive === inst ) { + datepicker_instActive = null; + } }, /* Enable the date picker to a jQuery selection.