]> 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)
committerScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2015 13:54:39 +0000 (08:54 -0500)
Fixes #10668
Closes gh-1362
(cherry picked from commit e5e3ca4240fbae9684f689ec6e00882ec0211922)

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.