aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.datepicker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 4a1892698..da8f89cd2 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -398,7 +398,8 @@ $.extend(Datepicker.prototype, {
settings = {};
settings[name] = value;
}
- if (inst = $.data(target, PROP_NAME)) {
+ var inst = $.data(target, PROP_NAME);
+ if (inst) {
if (this._curInst == inst) {
this._hideDatepicker(null);
}