Skip to content

Commit

Permalink
chore(cs): remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Aug 14, 2024
1 parent 4f9f571 commit fa6bb86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{ languageOptions: { globals: globals.browser } },
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
];
];
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
"cpx": "^1.5.0",
"csso": "^5.0.4",
"csso-cli": "^4.0.1",
"eslint": "^9.9.0",
"globals": "^15.9.0",
"google-closure-compiler": "^20220719.0.0",
"less": "^4.1.3",
"less-plugin-autoprefix": "^2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions src/js/winbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,13 @@ function setup() {
addListener(
body,
"mousedown",
function (event) {
function () {
window_clicked = false;
},
true
);

addListener(body, "mousedown", function (event) {
addListener(body, "mousedown", function () {
if (!window_clicked) {
const stack_length = stack_win.length;

Expand Down Expand Up @@ -441,7 +441,7 @@ function register(self) {
addListener(
self.dom,
"mousedown",
function (event) {
function () {
window_clicked = true;
},
true
Expand All @@ -450,7 +450,7 @@ function register(self) {
addListener(
self.body,
"mousedown",
function (event) {
function () {
// stop propagation would disable global listeners used inside window contents
// use event bubbling for this listener to skip this handler by the other click listeners
self.focus();
Expand Down

0 comments on commit fa6bb86

Please sign in to comment.