[de-xbl] convert the ruleactiontype-menulist binding to <menulist is="ruleactiontype-menulist">
Categories
(Thunderbird :: Filters, task)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: khushil324)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
The ruleactiontype-menulist binding can be converted to a customized built-in.
Should be similar to e.g. menulist-charsetpicker-viewing.
Reporter | ||
Updated•6 years ago
|
Comment 1•5 years ago
|
||
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Reporter | ||
Comment 3•5 years ago
|
||
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #3)
should protect against being run more than once, so add this.hasChildNodes()
We are not inserting the elements in the connected callback, the child elements are inserted in the XUL file only. So When connectedCallback will run, there will be child elements in the menulist. Any other to prevent connected callback for running 2nd time?
Assignee | ||
Comment 5•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #4)
We are not inserting the elements in the connected callback, the child elements are inserted in the XUL file only. So When connectedCallback will run, there will be child elements in the menulist. Any other to prevent connected callback for running 2nd time?
Got this with this.hasConnected.
Reporter | ||
Comment 6•5 years ago
|
||
Ok, you can use that. (But even if we don't insert children we should protect against running twice so we don't double up event handlers and such.)
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/e9bc2e1580a0
[de-xbl] convert the ruleactiontype-menulist binding to <menulist is='ruleactiontype-menulist'>. r=mkmelin DONTBUILD
Comment 10•5 years ago
|
||
I pushed that with DONTBUILD since there was a green try and Daily will take care of it.
Comment 11•5 years ago
|
||
Description
•