Skip to content

Commit 772ab6e

Browse files
committed
Bug 1861865 - Fix ESLint valid-jsdoc issues in syncedtabs code. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D192159
1 parent af66712 commit 772ab6e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ module.exports = {
246246
"browser/components/screenshots/**",
247247
"browser/components/sessionstore/**",
248248
"browser/components/storybook/.storybook/**",
249-
"browser/components/syncedtabs/**",
250249
"browser/components/tests/browser/**",
251250
"browser/components/textrecognition/textrecognition.mjs",
252251
"browser/components/touchbar/tests/browser/browser_touchbar_searchrestrictions.js",

browser/components/syncedtabs/SyncedTabsDeckStore.sys.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Object.assign(SyncedTabsDeckStore.prototype, EventEmitter.prototype, {
2828

2929
/**
3030
* Sets the selected panelId and triggers a change event.
31-
* @param {String} panelId - ID of the panel to select.
31+
*
32+
* @param {string} panelId - ID of the panel to select.
3233
*/
3334
selectPanel(panelId) {
3435
if (!this._panels.includes(panelId) || this._selectedPanel === panelId) {
@@ -40,6 +41,7 @@ Object.assign(SyncedTabsDeckStore.prototype, EventEmitter.prototype, {
4041

4142
/**
4243
* Update the set of panels in the deck and trigger a change event.
44+
*
4345
* @param {Array} panels - an array of IDs for each panel in the deck.
4446
*/
4547
setPanels(panels) {

browser/components/syncedtabs/TabListView.sys.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ TabListView.prototype = {
215215
/**
216216
* Update the element representing an item, ensuring it's in sync with the
217217
* underlying data.
218+
*
218219
* @param {client} item - Item to use as a source.
219220
* @param {Element} itemNode - Element to update.
220221
*/
@@ -242,6 +243,7 @@ TabListView.prototype = {
242243
/**
243244
* Update the element representing a tab, ensuring it's in sync with the
244245
* underlying data.
246+
*
245247
* @param {tab} item - Item to use as a source.
246248
* @param {Element} itemNode - Element to update.
247249
*/
@@ -308,6 +310,7 @@ TabListView.prototype = {
308310

309311
/**
310312
* Handle a keydown event on the list box.
313+
*
311314
* @param {Event} event - Triggering event.
312315
*/
313316
onKeyDown(event) {
@@ -585,8 +588,9 @@ TabListView.prototype = {
585588

586589
/**
587590
* Find the parent item element, from a given child element.
591+
*
588592
* @param {Element} node - Child element.
589-
* @return {Element} Element for the item, or null if not found.
593+
* @returns {Element} Element for the item, or null if not found.
590594
*/
591595
_findParentItemNode(node) {
592596
while (

0 commit comments

Comments
 (0)