зеркало из https://github.com/mozilla/pjs.git
Bug 317864 Fix old consumers of .stringValue. Patch by ssitter@googlemail.com, r=jminta
This commit is contained in:
Родитель
be5d725d21
Коммит
88cc3fd8f7
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче