willtheorangeguy / willtheorangeguy.github.io

Consider using let or const instead of var JS-0239
Anti-pattern
Major
5 months ago2 years old
 105    typeCheckConfig: function (t, e, n) {
 106      for (var i in n)
 107        if (Object.prototype.hasOwnProperty.call(n, i)) {
 108          var o = n[i], 109            r = e[i], 110            a = 111              r && l.isElement(r) 112                ? "element" 113                : (s = r) === null || typeof s == "undefined" 114                  ? "" + s 115                  : {}.toString 116                      .call(s) 117                      .match(/\s([a-z]+)/i)[1] 118                      .toLowerCase(); 119          if (!new RegExp(o).test(a))
 120            throw new Error(
 121              t.toUpperCase() +
 4
 5(() => {
 6  (() => {
 7    var t, 8      n, 9      e = document.body;10    function s() {
11      return parseInt(localStorage.getItem("wcTheme") || 2);
12    }
4221        }),
4222        (t._jQueryInterface = function (e) {
4223          return this.each(function () {
4224            var n = i.default(this),4225              o = n.data("bs.toast");4226            if (
4227              (o ||
4228                ((o = new t(this, typeof e == "object" && e)),
4210          if (
4211            (this._element.classList.remove("show"), this._config.animation)
4212          ) {
4213            var n = l.getTransitionDurationFromElement(this._element);4214            i.default(this._element)
4215              .one(l.TRANSITION_END, e)
4216              .emulateTransitionEnd(n);
4202          );
4203        }),
4204        (e._close = function () {
4205          var t = this,4206            e = function () {4207              t._element.classList.add("hide"),4208                i.default(t._element).trigger("hidden.bs.toast");4209            };4210          if (
4211            (this._element.classList.remove("show"), this._config.animation)
4212          ) {