Bug 299970 "@mozilla.org/transactionmanager;1" is not a service and should not be used as one

r=mvl
This commit is contained in:
timeless%mozdev.org 2005-07-19 23:30:08 +00:00
parent 868761998f
commit 349614a9fe

View File

@ -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);