diff options
author | Chen Eshchar <eshcharc@gmail.com> | 2014-10-19 09:37:21 +0300 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2014-10-20 09:17:40 -0400 |
commit | e5e3ca4240fbae9684f689ec6e00882ec0211922 (patch) | |
tree | dfbe702e308796c2289a9fd30328c69ba15d29a5 /ui | |
parent | c0df7b01385f0c3eb100a3f841625cae1b180185 (diff) | |
download | jquery-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.js | 4 |
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. |