Skip to content

Commit 2d6bd72

Browse files
committed
Bug 1980572 - [devtools] Use proper private properties in InspectorPanel. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D259523
1 parent d040904 commit 2d6bd72

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

devtools/client/inspector/panel.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@
66

77
class InspectorPanel {
88
constructor(iframeWindow, toolbox, commands) {
9-
this._inspector = new iframeWindow.Inspector(toolbox, commands);
9+
this.#inspector = new iframeWindow.Inspector(toolbox, commands);
1010
}
11+
12+
#inspector;
13+
1114
/**
1215
* Initialize the inspector
1316
*
1417
* @param {Object} options: see Inspector.init
1518
* @returns {Inspector}
1619
*/
1720
open(options = {}) {
18-
return this._inspector.init(options);
21+
return this.#inspector.init(options);
1922
}
2023

2124
destroy() {
22-
this._inspector.destroy();
25+
this.#inspector.destroy();
2326
}
2427
}
2528
exports.InspectorPanel = InspectorPanel;

0 commit comments

Comments
 (0)