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
(cherry picked from commit e5e3ca4)
  • Loading branch information
eshcharc authored and scottgonzalez committed Feb 5, 2015
1 parent 27a88c8 commit 47ceff8
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 47ceff8

Please sign in to comment.