diff options
author | Jay Oster <jay@loyalize.com> | 2011-09-15 17:02:18 -0700 |
---|---|---|
committer | Jay Oster <jay@loyalize.com> | 2011-09-15 17:02:18 -0700 |
commit | c36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16 (patch) | |
tree | 014bbf2d6df2e48518eb89b7be94f0980b0e33ae /ui/jquery.ui.datepicker.js | |
parent | cd7350146a0d9763043a9309135f59b31f653dda (diff) | |
download | jquery-ui-c36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16.tar.gz jquery-ui-c36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16.zip |
Datepicker: Fix `this` reference in _hideDatepicker(). Fixed #7722 - Datepicker: Does not properly clear current instance when hidden.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 0b6fb2218..a5ff08c63 100644 --- a/ui/jquery.ui.datepicker.js +++ b/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 |