Skip to content
Permalink
Browse files

Datepicker: Fix `this` reference in _hideDatepicker(). Fixed #7722 - …

…Datepicker: Does not properly clear current instance when hidden.
  • Loading branch information
Jay Oster
Jay Oster committed Sep 16, 2011
1 parent cd73501 commit c36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.datepicker.js
@@ -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

0 comments on commit c36b43d

Please sign in to comment.
You can’t perform that action at this time.