]> source.dussan.org Git - jquery-ui.git/commitdiff
DatePicker: datepicker_instActive released on instance destroy
authorChen Eshchar <eshcharc@gmail.com>
Sun, 19 Oct 2014 06:37:21 +0000 (09:37 +0300)
committerTJ VanToll <tj.vantoll@gmail.com>
Mon, 20 Oct 2014 13:17:40 +0000 (09:17 -0400)
Fixes #10668
Closes gh-1362

ui/datepicker.js

index d3fe3dd1fe94f50b9db0b88488773e7990e87c69..34ffc578edb75cd087ba9044719db74dc1988ea0 100644 (file)
@@ -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.