commit 81f75a928334bdcb1be13cf0d17d1b0e0a6cd7d8
parent af2fb08d3e5d7adc666cd8ba947d8b442c2c0819
Author: Lorenz A <me@lorenzackermann.xyz>
Date: Mon, 8 Dec 2025 16:34:50 +0000
Bug 2004208 - [devtools] Turn dom-decorator.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D275467
Diffstat:
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/devtools/client/dom/content/dom-decorator.js b/devtools/client/dom/content/dom-decorator.js
@@ -7,15 +7,11 @@ const {
Property,
} = require("resource://devtools/client/dom/content/reducers/grips.js");
-// Implementation
-
-function DomDecorator() {}
-
/**
* Decorator for DOM panel tree component. It's responsible for
* appending an icon to read only properties.
*/
-DomDecorator.prototype = {
+class DomDecorator {
getRowClass(object) {
if (object instanceof Property) {
const value = object.value;
@@ -35,14 +31,14 @@ DomDecorator.prototype = {
}
return null;
- },
+ }
/**
* Return custom React template for specified object. The template
* might depend on specified column.
*/
- getValueRep() {},
-};
+ getValueRep() {}
+}
// Exports from this module
exports.DomDecorator = DomDecorator;