summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-27 18:35:24 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-27 18:35:24 (GMT)
commit29c8702a95b12a4a8aabeea2ab0f255bc3cc547f (patch)
treed69200bc2f6f3ec0035cfa374235833b5c910c4e
parent620985d0f1482bc11e5a592ee82531332544877f (diff)
downloadroundcubemail-plugins-kolab-29c8702a95b12a4a8aabeea2ab0f255bc3cc547f.tar.gz
Avoid using reserved keywords for variable namesHEADmaster
-rw-r--r--plugins/calendar/calendar_ui.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index 84c5adb..bb7279d 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -197,18 +197,18 @@ function rcube_calendar_ui(settings)
{
var result = [],
strlen = str.length,
- q, p, i, char, last;
+ q, p, i, chr, last;
for (q = p = i = 0; i < strlen; i++) {
- char = str.charAt(i);
- if (char == '"' && last != '\\') {
+ chr = str.charAt(i);
+ if (chr == '"' && last != '\\') {
q = !q;
}
- else if (!q && char == delimiter) {
+ else if (!q && chr == delimiter) {
result.push(str.substring(p, i));
p = i + 1;
}
- last = char;
+ last = chr;
}
result.push(str.substr(p));