зеркало из https://github.com/mozilla/pjs.git
Initialize creationDate and lastModifiedDate on itembase init, notpartofthebuild
This commit is contained in:
Родитель
a50705ab08
Коммит
49e37f3b21
|
@ -40,6 +40,9 @@ calItemBase.prototype = {
|
|||
this.mAlarmTime = new CalDateTime();
|
||||
this.mLastModifiedTime = new CalDateTime();
|
||||
|
||||
this.mCreationDate.jsDate = new Date();
|
||||
this.mLastModifiedTime.jsDate = new Date();
|
||||
|
||||
this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"].
|
||||
createInstance(Components.interfaces.nsIWritablePropertyBag);
|
||||
|
||||
|
|
|
@ -82,6 +82,9 @@ calItemBase.prototype = {
|
|||
this.mAlarmTime = new CalDateTime();
|
||||
this.mLastModifiedTime = new CalDateTime();
|
||||
|
||||
this.mCreationDate.jsDate = new Date();
|
||||
this.mLastModifiedTime.jsDate = new Date();
|
||||
|
||||
this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"].
|
||||
createInstance(Components.interfaces.nsIWritablePropertyBag);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче