mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
don't update lastmodified when setting icalComponent, when cloning or when setting parent
bug 276522, r=shaver
This commit is contained in:
parent
6aa6db5c15
commit
1183b38867
@ -156,6 +156,8 @@ calEvent.prototype = {
|
||||
__proto__: this.itemBasePromotedProps
|
||||
};
|
||||
this.importUnpromotedProperties(event, promotedProps);
|
||||
// Importing didn't really change anything
|
||||
this.mDirty = false;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -108,6 +108,9 @@ calItemBase.prototype = {
|
||||
// for subclasses to use; copies the ItemBase's values
|
||||
// into m
|
||||
cloneItemBaseInto: function (m) {
|
||||
var suppressDCE = this.lastModifiedTime;
|
||||
suppressDCE = this.stampTime;
|
||||
|
||||
m.mImmutable = false;
|
||||
m.mGeneration = this.mGeneration;
|
||||
m.mLastModifiedTime = this.mLastModifiedTime.clone();
|
||||
@ -144,6 +147,8 @@ calItemBase.prototype = {
|
||||
m.mProperties.setProperty (prop.name, prop.value);
|
||||
}
|
||||
|
||||
m.mDirty = this.mDirty;
|
||||
|
||||
return m;
|
||||
},
|
||||
|
||||
@ -227,6 +232,17 @@ calItemBase.prototype = {
|
||||
this.mAttendees.push(attendee);
|
||||
},
|
||||
|
||||
get parent () {
|
||||
return this.mParent;
|
||||
},
|
||||
|
||||
set parent (v) {
|
||||
if (this.mImmutable)
|
||||
// Components.results.NS_ERROR_CALENDAR_IMMUTABLE;
|
||||
throw Components.results.NS_ERROR_FAILURE;
|
||||
this.mParent = v;
|
||||
},
|
||||
|
||||
/* MEMBER_ATTR(mIcalString, "", icalString), */
|
||||
get icalString() {
|
||||
throw Components.results.NS_NOT_IMPLEMENTED;
|
||||
@ -239,7 +255,7 @@ calItemBase.prototype = {
|
||||
itemBasePromotedProps: {
|
||||
"CREATED": true,
|
||||
"UID": true,
|
||||
"LASTMODIFIED": true,
|
||||
"LAST-MODIFIED": true,
|
||||
"SUMMARY": true,
|
||||
"PRIORITY": true,
|
||||
"METHOD": true,
|
||||
@ -379,7 +395,6 @@ calItemOccurrence.prototype = {
|
||||
|
||||
makeMemberAttr(calItemBase, "mGeneration", 0, "generation");
|
||||
makeMemberAttr(calItemBase, "mCreationDate", null, "creationDate");
|
||||
makeMemberAttr(calItemBase, "mParent", null, "parent");
|
||||
makeMemberAttr(calItemBase, "mId", null, "id");
|
||||
makeMemberAttr(calItemBase, "mTitle", null, "title");
|
||||
makeMemberAttr(calItemBase, "mPriority", 0, "priority");
|
||||
|
Loading…
x
Reference in New Issue
Block a user