mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 10:10:31 +00:00
Bug 291220 redo should use the returned event, not the original event, r=shaver
This commit is contained in:
parent
c7f36c5764
commit
41f0c32b13
@ -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;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user