willtheorangeguy / willtheorangeguy.github.io

Consider using arrow functions for callbacks JS-0241
Anti-pattern
Minor
4 months agoa year old
 382                    ? ((t.zoomedHd = t.zoomed.cloneNode()),
 383                      t.zoomedHd.removeAttribute("sizes"),
 384                      t.zoomedHd.removeAttribute("loading"),
 385                      (g = t.zoomedHd.addEventListener("load", function () { 386                        t.zoomedHd.removeEventListener("load", g), 387                          t.zoomedHd.classList.add("medium-zoom-image--opened"), 388                          t.zoomedHd.addEventListener("click", r), 389                          document.body.appendChild(t.zoomedHd), 390                          u(); 391                      }))) 392                    : u();
 393            });
 394          },
4196          i.default(this._element).on(
4197            "click.dismiss.bs.toast",
4198            '[data-dismiss="toast"]',
4199            function () {4200              return t.hide();4201            },4202          );
4203        }),
4204        (e._close = function () {
4146                t._element.classList.add("show"),
4147                i.default(t._element).trigger("shown.bs.toast"),
4148                t._config.autohide &&
4149                  (t._timeout = setTimeout(function () {4150                    t.hide();4151                  }, t._config.delay));4152            };
4153            if (
4154              (this._element.classList.remove("hide"),
3971        t
3972      );
3973    })();
3974  i.default(window).on("load.bs.scrollspy.data-api", function () {3975    for (3976      var t = [].slice.call(document.querySelectorAll('[data-spy="scroll"]')),3977        e = t.length;3978      e--;39793980    ) {3981      var n = i.default(t[e]);3982      ce._jQueryInterface.call(n, n.data());3983    }3984  }),3985    (i.default.fn[le] = ce._jQueryInterface),
3986    (i.default.fn[le].Constructor = ce),
3987    (i.default.fn[le].noConflict = function () {
3935            .filter(function (t) {
3936              return t.classList.contains("active");
3937            })
3938            .forEach(function (t) {3939              return t.classList.remove("active");3940            });3941        }),
3942        (t._jQueryInterface = function (e) {
3943          return this.each(function () {