7 typeof exports == "object" && typeof module != "undefined"
8 ? e(exports, require("jquery"))
9 : typeof define == "function" && define.amd
10 ? define(["exports", "jquery"], e) 11 : e(
12 ((t =
13 typeof globalThis != "undefined"
6!(function (t, e) {
7 typeof exports == "object" && typeof module != "undefined"
8 ? e(exports, require("jquery"))
9 : typeof define == "function" && define.amd 10 ? define(["exports", "jquery"], e)
11 : e(
12 ((t =
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript1138 t[e.is(":hover") ? "addClass" : "removeClass"]("show");
1139 }, 300);
1140 }),
1141 $(window).resize(function () {1142 clearTimeout(w), (w = setTimeout(S, 200));
1143 });
1144 })();
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript1130 window.addEventListener("orientationchange", v),
1131 $("body").on("mouseenter mouseleave", ".dropdown", function (n) {
1132 var e = $(n.target).closest(".dropdown"),
1133 t = $(".dropdown-menu", e);1134 e.addClass("show"),
1135 t.addClass("show"),
1136 setTimeout(function () {
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript1129 window.addEventListener("resize", v),
1130 window.addEventListener("orientationchange", v),
1131 $("body").on("mouseenter mouseleave", ".dropdown", function (n) {
1132 var e = $(n.target).closest(".dropdown"),1133 t = $(".dropdown-menu", e);
1134 e.addClass("show"),
1135 t.addClass("show"),
Variables that aren't defined, but accessed may throw reference errors at runtime.
NOTE: In browser applications, DeepSource recommends the use of ESModules over regular
text/javascript
scripts. Using variables that are injected by scripts included in an HTML file is currently not supported.
Potential ReferenceError
s may result from misspellings of variable and parameter names, or accidental implicit globals (for example, forgetting the var
keyword in a for
loop initializer).
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a /*global ...*/
comment, or specified in the globals key in the configuration file.
A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
const foo = someFunction(); // `someFunction` is not defined
const bar = baz + 1; // 'baz' is undeclared
import { someFunction } from 'some-file';
const baz = Math.random();
const foo = someFunction();
const bar = baz + 1;