Bug 317864 Fix old consumers of .stringValue. Patch by ssitter@googlemail.com, r=jminta

This commit is contained in:
jminta%gmail.com 2005-11-26 21:17:55 +00:00
Родитель 2355001ea2
Коммит 4b3164d2cf
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -112,7 +112,7 @@ calAttendee.prototype = {
// icalatt is a calIcalProperty of type attendee
set icalProperty (icalatt) {
this.modify();
this.id = icalatt.stringValue;
this.id = icalatt.valueAsIcalString;
var promotedProps = { };
for (var i = 0; i < this.icalAttendeePropMap.length; i++) {
var prop = this.icalAttendeePropMap[i];
@ -137,7 +137,7 @@ calAttendee.prototype = {
var icalatt = icssvc.createIcalProperty("ATTENDEE");
if (!this.id)
throw Components.results.NS_ERROR_NOT_INITIALIZED;
icalatt.stringValue = this.id;
icalatt.valueAsIcalString = this.id;
for (var i = 0; i < this.icalAttendeePropMap.length; i++) {
var prop = this.icalAttendeePropMap[i];
if (this[prop.cal])

Просмотреть файл

@ -264,14 +264,14 @@ function guessSystemTimezone()
var comp = icssrv.getTimezone(someTZ);
var subComp = comp.getFirstSubcomponent("VTIMEZONE");
var standard = subComp.getFirstSubcomponent("STANDARD");
var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue;
var standardName = standard.getFirstProperty("TZNAME").stringValue;
var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").valueAsIcalString;
var standardName = standard.getFirstProperty("TZNAME").valueAsIcalString;
var daylight = subComp.getFirstSubcomponent("DAYLIGHT");
var daylightTZOffset = null;
var daylightName = null;
if (daylight) {
daylightTZOffset = daylight.getFirstProperty("TZOFFSETTO").stringValue;
daylightName = daylight.getFirstProperty("TZNAME").stringValue;
daylightTZOffset = daylight.getFirstProperty("TZOFFSETTO").valueAsIcalString;
daylightName = daylight.getFirstProperty("TZNAME").valueAsIcalString;
}
if (TZoffset2 == standardTZOffset && TZoffset2 == TZoffset1 &&
!daylight) {