Skip to content

Commit

Permalink
Datepicker: Fix this reference in _hideDatepicker(). Fixed #7722 - …
Browse files Browse the repository at this point in the history
…Datepicker: Does not properly clear current instance when hidden.
  • Loading branch information
Jay Oster committed Sep 16, 2011
1 parent cd73501 commit c36b43d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -807,9 +807,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;
};

// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
Expand Down

0 comments on commit c36b43d

Please sign in to comment.