Skip to content

Commit

Permalink
DatePicker: datepicker_instActive released on instance destroy
Browse files Browse the repository at this point in the history
Fixes #10668
Closes gh-1362
  • Loading branch information
eshcharc authored and tjvantoll committed Oct 20, 2014
1 parent c0df7b0 commit e5e3ca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e5e3ca4

Please sign in to comment.