mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
Bug 299970 "@mozilla.org/transactionmanager;1" is not a service and should not be used as one
r=mvl
This commit is contained in:
parent
868761998f
commit
349614a9fe
@ -1445,7 +1445,7 @@ function getContrastingTextColor(bgColor)
|
||||
}
|
||||
|
||||
var gTransactionMgr = Components.classes["@mozilla.org/transactionmanager;1"]
|
||||
.getService(Components.interfaces.nsITransactionManager);
|
||||
.createInstance(Components.interfaces.nsITransactionManager);
|
||||
function doTransaction(aAction, aItem, aCalendar, aOldItem, aListener) {
|
||||
var txn = new calTransaction(aAction, aItem, aCalendar, aOldItem, aListener);
|
||||
gTransactionMgr.doTransaction(txn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user