From e5e3ca4240fbae9684f689ec6e00882ec0211922 Mon Sep 17 00:00:00 2001 From: Chen Eshchar Date: Sun, 19 Oct 2014 09:37:21 +0300 Subject: DatePicker: datepicker_instActive released on instance destroy Fixes #10668 Closes gh-1362 --- ui/datepicker.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') 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. -- cgit v1.2.3