aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChen Eshchar <eshcharc@gmail.com>2014-10-19 09:37:21 +0300
committerTJ VanToll <tj.vantoll@gmail.com>2014-10-20 09:17:40 -0400
commite5e3ca4240fbae9684f689ec6e00882ec0211922 (patch)
treedfbe702e308796c2289a9fd30328c69ba15d29a5 /ui
parentc0df7b01385f0c3eb100a3f841625cae1b180185 (diff)
downloadjquery-ui-e5e3ca4240fbae9684f689ec6e00882ec0211922.tar.gz
jquery-ui-e5e3ca4240fbae9684f689ec6e00882ec0211922.zip
DatePicker: datepicker_instActive released on instance destroy
Fixes #10668 Closes gh-1362
Diffstat (limited to 'ui')
-rw-r--r--ui/datepicker.js4
1 files changed, 4 insertions, 0 deletions
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.