Permalink
Browse files

DatePicker: datepicker_instActive released on instance destroy

Fixes #10668
Closes gh-1362
  • Loading branch information...
eshcharc authored and tjvantoll committed Oct 19, 2014
1 parent c0df7b0 commit e5e3ca4240fbae9684f689ec6e00882ec0211922
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/datepicker.js
View
@@ -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.

0 comments on commit e5e3ca4

Please sign in to comment.