willtheorangeguy / Note-Style-Guide

Found Yoda conditions JS-0104
Bug risk
Minor
5 months ago2 years old
11265                    : q(this).val("")
11266                  : r &&
11267                    ((!0 === r && /hidden/.test(e)) ||
11268                      ("string" == typeof r && q(this).is(r))) &&11269                    (this.value = "");
11270        });
11271      }),
11259              ? (this.checked = !1)
11260              : "select" === t
11261                ? (this.selectedIndex = -1)
11262                : "file" === e11263                  ? /MSIE/.test(navigator.userAgent)
11264                    ? q(this).replaceWith(q(this).clone(!0))
11265                    : q(this).val("")
11257            ? (this.value = "")
11258            : "checkbox" === e || "radio" === e
11259              ? (this.checked = !1)
11260              : "select" === t11261                ? (this.selectedIndex = -1)
11262                : "file" === e
11263                  ? /MSIE/.test(navigator.userAgent)
10561        ? (M = { success: M })
10562        : "string" == typeof M || (!1 === M && 0 < arguments.length)
10563          ? ((M = { url: M, data: e, dataType: t }),
10564            "function" == typeof r && (M.success = r))10565          : void 0 === M && (M = {}),
10566        (O = M.method || M.type || this.attr2("method")),
10567        (n =
10489          return (
10490            void 0 === t &&
10491              (t =
10492                "undefined" != typeof window10493                  ? require("jquery")
10494                  : require("jquery")(e)),
10495            r(t),