diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/client/jsonview/json-viewer.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/jsonview/json-viewer.js')
-rw-r--r-- | devtools/client/jsonview/json-viewer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/client/jsonview/json-viewer.js b/devtools/client/jsonview/json-viewer.js index 131307302e..cefeb7b8f6 100644 --- a/devtools/client/jsonview/json-viewer.js +++ b/devtools/client/jsonview/json-viewer.js @@ -4,7 +4,7 @@ "use strict"; -define(function (require, exports, module) { +define(function (require) { const { render } = require("devtools/client/shared/vendor/react-dom"); const { createFactories } = require("devtools/client/shared/react-utils"); const { MainTabbedArea } = createFactories( @@ -79,7 +79,7 @@ define(function (require, exports, module) { theApp.setState({ searchFilter: value }); }, - onPrettify(data) { + onPrettify() { if (input.json instanceof Error) { // Cannot prettify invalid JSON return; @@ -96,12 +96,12 @@ define(function (require, exports, module) { input.prettified = !input.prettified; }, - onCollapse(data) { + onCollapse() { input.expandedNodes.clear(); theApp.forceUpdate(); }, - onExpand(data) { + onExpand() { input.expandedNodes = TreeViewClass.getExpandedNodes(input.json); theApp.setState({ expandedNodes: input.expandedNodes }); }, |