Bug 291220 redo should use the returned event, not the original event, r=shaver

git-svn-id: svn://10.0.0.236/trunk@201051 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com
2006-06-28 02:41:42 +00:00
parent 85e3c091a6
commit 6baf7564d2

View File

@@ -325,17 +325,17 @@ calTransaction.prototype = {
undoTransaction: function () {
switch (this.mAction) {
case 'add':
this.mCalendar.deleteItem(this.mItem, null);
this.mCalendar.deleteItem(this.mItem, this);
break;
case 'modify':
this.mCalendar.modifyItem(this.mOldItem, this.mItem, null);
this.mCalendar.modifyItem(this.mOldItem, this.mItem, this);
break;
case 'delete':
this.mCalendar.addItem(this.mItem, null);
this.mCalendar.addItem(this.mItem, this);
break;
case 'move':
this.mCalendar.deleteItem(this.mItem, this.mListener);
this.mOldCalendar.addItem(this.mOldItem, this.mListener);
this.mCalendar.deleteItem(this.mItem, this);
this.mOldCalendar.addItem(this.mOldItem, this);
break;
}
},