Closed
Bug 1571814
Opened 5 years ago
Closed 5 years ago
Refactor attribute inheritance for CalendarListTree
Categories
(Calendar :: Tasks, task, P3)
Calendar
Tasks
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: pmorris, Assigned: pmorris)
References
Details
Attachments
(1 file, 1 obsolete file)
5.67 KB,
patch
|
Details | Diff | Splinter Review |
After bug 1545824 lands, follow up on bug 1504416. Use the new mechanisms for attribute inheritance, rather than doing it manually, in the CalendarListTree custom element.
Assignee | ||
Comment 1•5 years ago
|
||
See https://searchfox.org/mozilla-central/source/toolkit/content/customElements.js#393 for how this stuff works now.
The only inherited attributes we're currently using here are the ones for ".treechildren". I assume the others are there so that the inheritance is already set up to work correctly if those attributes are used in the future.
Attachment #9083741 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Comment on attachment 9083741 [details] [diff] [review]
calendar-list-tree-attribute-inheritance-0.patch
Review of attachment 9083741 [details] [diff] [review]:
-----------------------------------------------------------------
Looks reasonable to me
::: calendar/base/content/widgets/calendar-list-tree.js
@@ +19,5 @@
> * @implements nsiTreeView
> */
> class CalendarListTree extends customElements.get("tree") {
> + // The inherited attributes that are specific to CalendarListTree,
> + // as opposed to those from the MozTree super class.
please use /** */ syntax for this documentation
@@ +51,5 @@
> + */
> + getElementForAttrInheritance(selector) {
> + if (selector in CalendarListTree.calListTreeInheritedAttributes) {
> + return this.querySelector(selector);
> + } else {
no else after return please
Attachment #9083741 -
Flags: review?(mkmelin+mozilla)
Attachment #9083741 -
Flags: review?(geoff)
Attachment #9083741 -
Flags: feedback+
Assignee | ||
Comment 4•5 years ago
|
||
Made the changes requested by mkmelin.
Attachment #9083741 -
Attachment is obsolete: true
Attachment #9083741 -
Flags: review?(geoff)
Attachment #9084017 -
Flags: review?(geoff)
Assignee | ||
Updated•5 years ago
|
Status: NEW → ASSIGNED
Comment 5•5 years ago
|
||
I hate to break it to you, but this file disappeared yesterday in bug 1561530.
Assignee | ||
Comment 6•5 years ago
|
||
Huh, well, I'll be... move along, nothing to see here.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Attachment #9084017 -
Flags: review?(geoff)
Updated•5 years ago
|
Resolution: FIXED → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•