aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorJay Oster <jay@loyalize.com>2011-09-15 17:02:18 -0700
committerJay Oster <jay@loyalize.com>2011-09-15 17:02:18 -0700
commitc36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16 (patch)
tree014bbf2d6df2e48518eb89b7be94f0980b0e33ae /ui/jquery.ui.datepicker.js
parentcd7350146a0d9763043a9309135f59b31f653dda (diff)
downloadjquery-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.js3
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