Bug 332270 js-strict warning fixes, r=mvl

git-svn-id: svn://10.0.0.236/trunk@193348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com 2006-03-31 21:23:35 +00:00
parent 604bef08a9
commit 5ab6bc391c
2 changed files with 8 additions and 8 deletions

View File

@ -58,8 +58,8 @@
["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch2);
// Set the preference for the default start of the week
viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
var viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
try {
viewElem.weekStartOffset = pb2.getIntPref("calendar.week.start");
} catch (ex) {}
@ -237,8 +237,8 @@
daysOff.push(Number(i));
}
}
viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
var viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
viewElem.daysOffArray = daysOff;
} catch (ex) {}

View File

@ -59,8 +59,8 @@
["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch2);
// Set the preference for the default start of the week
viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
var viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
try {
viewElem.weekStartOffset = pb2.getIntPref("calendar.week.start");
} catch (ex) {}
@ -268,8 +268,8 @@
daysOff.push(Number(i));
}
}
viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
var viewElem = document.getAnonymousElementByAttribute(
this, "anonid", "view-element");
viewElem.daysOffArray = daysOff;
} catch (ex) {}
]]></body>