Skip to content

Commit 4427f9a

Browse files
committed
Remove a few unused arguments in the JavaScript code
1 parent 7371a90 commit 4427f9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const djdt = {
4949
}
5050
}
5151
);
52-
$$.on(djDebug, "click", ".djDebugClose", function (event) {
52+
$$.on(djDebug, "click", ".djDebugClose", function () {
5353
djdt.hide_one_level();
5454
});
5555
$$.on(
@@ -92,8 +92,7 @@ const djdt = {
9292
});
9393

9494
// Used by the cache, profiling and SQL panels
95-
$$.on(djDebug, "click", ".djToggleSwitch", function (event) {
96-
const self = this;
95+
$$.on(djDebug, "click", ".djToggleSwitch", function () {
9796
const id = this.dataset.toggleId;
9897
const toggleOpen = "+";
9998
const toggleClose = "-";
@@ -112,6 +111,7 @@ const djdt = {
112111
.forEach(function (e) {
113112
$$.toggle(e, !open_me);
114113
});
114+
const self = this;
115115
this.closest(".djDebugPanelContent")
116116
.querySelectorAll(".djToggleDetails_" + id)
117117
.forEach(function (e) {
@@ -139,7 +139,7 @@ const djdt = {
139139
});
140140
djDebug
141141
.querySelector("#djShowToolBarButton")
142-
.addEventListener("click", function (event) {
142+
.addEventListener("click", function () {
143143
if (!djdt.handleDragged) {
144144
djdt.show_toolbar();
145145
}

0 commit comments

Comments
 (0)