Jonas Jenwald
d99bc5091c
[web/debugger.js] Enable the ESLint no-var
rule
These changes were made *mostly* automatically, using `gulp lint --fix`, with the following manual changes:
```diff
diff --git a/web/debugger.js b/web/debugger.js
index 1cda4066e..6f8b4a9f0 100644
--- a/web/debugger.js
+++ b/web/debugger.js
@@ -264,10 +264,9 @@ const Stepper = (function StepperClosure() {
}
if ("length" in args) {
// array
- let simpleArgs = [],
- i,
- ii;
- const MAX_ITEMS = 10;
+ const MAX_ITEMS = 10,
+ simpleArgs = [];
+ let i, ii;
for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
simpleArgs.push(simplifyArgs(args[i]));
}
@@ -511,11 +510,8 @@ window.PDFBug = (function PDFBugClosure() {
return {
tools: [FontInspector, StepperManager, Stats],
enable(ids) {
- let all = false,
- tools = this.tools;
- if (ids.length === 1 && ids[0] === "all") {
- all = true;
- }
+ const all = ids.length === 1 && ids[0] === "all";
+ const tools = this.tools;
for (let i = 0; i < tools.length; ++i) {
const tool = tools[i];
if (all || ids.includes(tool.id)) {
```
2021-05-04 16:29:11 +02:00
..
2021-01-09 16:09:46 +01:00
2021-03-13 16:12:53 +01:00
2015-01-26 16:44:45 +01:00
2021-01-10 18:58:13 +01:00
2021-03-04 11:34:51 +01:00
2021-03-20 13:12:09 +01:00
2021-04-28 15:03:45 -07:00
2021-01-09 16:09:44 +01:00
2021-04-09 21:32:44 +02:00
2015-08-14 18:59:55 +02:00
2021-02-07 22:28:53 +01:00
2011-07-05 10:53:57 -07:00
2021-05-04 16:29:11 +02:00
2021-02-26 10:50:29 +01:00
2021-04-09 13:24:25 +02:00
2021-03-04 11:34:51 +01:00
2021-03-17 15:48:24 +01:00
2020-12-23 14:05:49 +01:00
2021-03-04 11:34:51 +01:00
2021-03-26 21:37:51 +01:00
2021-04-09 09:56:28 -07:00
2021-04-16 09:53:59 +02:00
2019-12-26 12:35:12 +01:00
2021-03-04 11:34:51 +01:00
2021-02-26 10:50:29 +01:00
2021-02-14 10:39:49 +01:00
2021-03-17 15:48:24 +01:00
2021-03-04 11:34:51 +01:00
2021-04-05 19:33:53 +02:00
2019-12-26 12:34:24 +01:00
2021-03-25 12:24:28 +01:00
2021-03-04 11:34:51 +01:00
2021-04-06 13:08:50 +02:00
2021-04-11 10:36:46 +02:00
2021-04-28 14:45:56 +02:00
2021-04-06 13:04:23 +02:00
2021-04-09 13:24:25 +02:00
2021-01-09 20:37:51 +01:00
2021-03-30 08:50:35 -07:00
2021-03-07 16:20:52 +01:00
2021-04-10 13:12:47 +02:00
2021-01-22 21:38:15 +01:00
2021-04-08 13:58:24 +02:00
2021-02-25 16:08:04 +01:00
2021-03-05 20:31:48 +01:00
2021-04-11 17:07:33 +04:00
2021-01-22 21:38:15 +01:00
2019-12-26 12:34:24 +01:00
2021-03-22 14:38:05 +01:00
2021-02-05 16:08:29 -08:00
2021-04-09 09:56:28 -07:00
2021-05-02 15:36:01 +02:00
2021-02-05 17:50:11 +01:00
2021-03-04 11:34:51 +01:00
2021-04-24 13:00:19 +02:00
2020-03-21 13:55:06 +01:00
2020-09-05 17:18:15 +02:00
2017-05-31 09:22:25 -05:00
2018-03-21 18:21:46 +01:00
2019-01-23 20:33:20 +01:00
2016-02-14 13:23:34 +01:00
2017-05-31 09:22:25 -05:00
2021-04-12 16:24:03 -07:00
2021-02-14 10:39:34 +01:00
2021-02-14 10:39:34 +01:00
2021-04-12 14:13:49 +02:00
2021-03-25 13:02:39 +01:00