We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f11b40 commit d040904Copy full SHA for d040904
devtools/client/inspector/panel.js
@@ -4,10 +4,10 @@
4
5
"use strict";
6
7
-function InspectorPanel(iframeWindow, toolbox, commands) {
8
- this._inspector = new iframeWindow.Inspector(toolbox, commands);
9
-}
10
-InspectorPanel.prototype = {
+class InspectorPanel {
+ constructor(iframeWindow, toolbox, commands) {
+ this._inspector = new iframeWindow.Inspector(toolbox, commands);
+ }
11
/**
12
* Initialize the inspector
13
*
@@ -16,10 +16,10 @@ InspectorPanel.prototype = {
16
*/
17
open(options = {}) {
18
return this._inspector.init(options);
19
- },
20
21
destroy() {
22
this._inspector.destroy();
23
24
-};
+}
25
exports.InspectorPanel = InspectorPanel;
0 commit comments