Change calUtils service getters into properties
Categories
(Calendar :: Internal Components, enhancement)
Tracking
(thunderbird_esr91 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr91 | --- | wontfix |
People
(Reporter: darktrojan, Assigned: leftmostcat)
References
Details
Attachments
(1 file, 1 obsolete file)
The cal object has a bunch of methods for getting services. They're called like this: cal.getCalendarManager() or cal.getWeekInfoService() but having them as methods really isn't necessary, they could just be referenced as cal.manager or cal.weekInfoService.
To do this we should get rid of the _service function that implements the methods, and just call XPCOMUtils.defineLazyServiceGetter to add them to cal. Then go around and change all of the callers, which should be a simple find/replace operation.
(Later on, we can get rid of the interfaces calICalendarManager, calIFreeBusyService, and calIWeekInfoService altogether and just reference the objects straight from the modules. And nsIDragService doesn't really need to be here at all. But I think these are things for another bug.)
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D141897
Comment 3•3 years ago
|
||
Comment on attachment 9269127 [details]
Bug 1759768 - remove misplaced Java modelines. r=#thunderbird-reviewers
Revision D141898 was moved to bug 1761129. Setting attachment 9269127 [details] to obsolete.
| Assignee | ||
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/745eeaff881c
use standard lazy getters for cal services. r=darktrojan
| Reporter | ||
Updated•3 years ago
|
Description
•