Closed
Bug 1373152
Opened 8 years ago
Closed 5 years ago
Use arrow functions rather than separate functions for "then" of examples
Categories
(Developer Documentation Graveyard :: Add-ons, enhancement)
Developer Documentation Graveyard
Add-ons
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: yfdyh000, Unassigned)
References
Details
e.g. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/storage/StorageArea/clear, use the arrow function makes the code more concise, although it will lose the illustrative of the function name. Or, provide a Tip with link to remind about the arrow functions.
Comment 1•8 years ago
|
||
I think this is a matter of style: either are correct.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
I think this bug is a discussion, we whether should use newer arrow functions for examples.
https://wiki.mozilla.org/WebExtensions/Hacking#Code_Style refer:
Use arrow functions in preference to function expressions where appropriate.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WONTFIX → ---
Comment 3•5 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 8 years ago → 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•