aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJasvir Nagra <jasvir@gmail.com>2012-02-24 13:57:46 -0800
committerScott González <scott.gonzalez@gmail.com>2012-02-25 07:12:40 -0500
commit5c2eea3fd9bdb069fba6ce962aa885c49b4615a0 (patch)
tree2ea1db66ebee3ed0d1a2f0e1b67db1261a6d0456
parentf0b7130a5459d9f34b1e05ad6306d3909131bd8c (diff)
downloadjquery-ui-5c2eea3fd9bdb069fba6ce962aa885c49b4615a0.tar.gz
jquery-ui-5c2eea3fd9bdb069fba6ce962aa885c49b4615a0.zip
Datepicker: modified a catch variable to no longer mask an existing variable in scope. Fixed #8138 - datepicker: IE8 does not create a new scope for catch blocks and will cause
(cherry picked from commit 367da95ba5afcb80bebce75cd529a46004f60381)
-rw-r--r--ui/jquery.ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 0b83af289..7d105dd48 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -620,8 +620,8 @@ $.extend(Datepicker.prototype, {
$.datepicker._updateDatepicker(inst);
}
}
- catch (event) {
- $.datepicker.log(event);
+ catch (err) {
+ $.datepicker.log(err);
}
}
return true;