willtheorangeguy / Note-Style-Guide

Require spread operators instead of .apply() JS-0245
Anti-pattern
Minor
5 months ago2 years old
 1796        ? i.call(e).done(t).fail(n)
 1797        : e && m((i = e.then))
 1798          ? i.call(e, t, n)
 1799          : t.apply(void 0, [e].slice(r)); 1800    } catch (e) {
 1801      n.apply(void 0, [e]);
 1802    }
 1796        ? i.call(e).done(t).fail(n)
 1797        : e && m((i = e.then))
 1798          ? i.call(e, t, n)
 1799          : t.apply(void 0, [e].slice(r)); 1800    } catch (e) {
 1801      n.apply(void 0, [e]);
 1802    }
 1796        ? i.call(e).done(t).fail(n)
 1797        : e && m((i = e.then))
 1798          ? i.call(e, t, n)
 1799          : t.apply(void 0, [e].slice(r)); 1800    } catch (e) {
 1801      n.apply(void 0, [e]);
 1802    }
 1796        ? i.call(e).done(t).fail(n)
 1797        : e && m((i = e.then))
 1798          ? i.call(e, t, n)
 1799          : t.apply(void 0, [e].slice(r)); 1800    } catch (e) {
 1801      n.apply(void 0, [e]);
 1802    }
10545    var e = this.prop.apply(this, arguments);
10546    return (e && e.jquery) || "string" == typeof e
10547      ? e
10548      : this.attr.apply(this, arguments);10549  }),
10550    (q.fn.ajaxSubmit = function (M, e, t, r) {
10551      if (!this.length)