Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Datepicker: Fix this reference in _hideDatepicker(). Fixed #7722 - …
…Datepicker: Does not properly clear current instance when hidden.

(cherry picked from commit c36b43d)
  • Loading branch information
Jay Oster authored and scottgonzalez committed Nov 21, 2011
1 parent f7b28df commit 63bd71f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -797,9 +797,10 @@ $.extend(Datepicker.prototype, {
if (this._datepickerShowing) {
var showAnim = this._get(inst, 'showAnim');
var duration = this._get(inst, 'duration');
var self = this;
var postProcess = function() {
$.datepicker._tidyDialog(inst);
this._curInst = null;
self._curInst = null;
};
if ($.effects && $.effects[showAnim])
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
Expand Down

0 comments on commit 63bd71f

Please sign in to comment.