Permalink
Browse files

DatePicker: datepicker_instActive released on instance destroy

Fixes #10668
Closes gh-1362
(cherry picked from commit e5e3ca4)
  • Loading branch information...
eshcharc authored and scottgonzalez committed Oct 19, 2014
1 parent 27a88c8 commit 47ceff8dbd1f64c081f8fd136d86a5db23fef0ff
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 47ceff8

Please sign in to comment.