Skip to content

Commit 63bd71f

Browse files
Jay Osterscottgonzalez
authored andcommitted
Datepicker: Fix this reference in _hideDatepicker(). Fixed #7722 - Datepicker: Does not properly clear current instance when hidden.
(cherry picked from commit c36b43d)
1 parent f7b28df commit 63bd71f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,10 @@ $.extend(Datepicker.prototype, {
797797
if (this._datepickerShowing) {
798798
var showAnim = this._get(inst, 'showAnim');
799799
var duration = this._get(inst, 'duration');
800+
var self = this;
800801
var postProcess = function() {
801802
$.datepicker._tidyDialog(inst);
802-
this._curInst = null;
803+
self._curInst = null;
803804
};
804805
if ($.effects && $.effects[showAnim])
805806
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);

0 commit comments

Comments
 (0)