willtheorangeguy / Note-Style-Guide

Found confusing multiline expressions JS-0024
Bug risk
Major
4 months agoa year old
Unexpected newline between object and [ of property access
10638              var a = arguments,
10639                n = M.replaceTarget ? "replaceWith" : "html";
10640              q(M.target)
10641                [n](e)10642                .each(function () {
10643                  d.apply(this, a);
10644                });
Unexpected newline between object and [ of property access
 8062      var duration = Drupal.webform.states[effect].duration;
 8063      $(e.target)
 8064        .closest(".js-form-item, .js-form-submit, .js-form-wrapper")
 8065        [effect](duration); 8066    }
 8067  });
 8068  Drupal.states.State.aliases["invisible-slide"] = "!visible-slide";
Unexpected newline between object and [ of property access
 8179      var duration = Drupal.webform.states[effect].duration;
 8180      $(e.target)
 8181        .closest(".js-form-item, .js-form-submit, .js-form-wrapper")
 8182        [effect](duration); 8183    }
 8184  });
 8185  Drupal.states.State.aliases["invisible-slide"] = "!visible-slide";
Unexpected newline between object and [ of property access
11135              var a = arguments,
11136                n = M.replaceTarget ? "replaceWith" : "html";
11137              q(M.target)
11138                [n](e)11139                .each(function () {
11140                  d.apply(this, a);
11141                });
Unexpected newline between object and [ of property access
 8559      var duration = Drupal.webform.states[effect].duration;
 8560      $(e.target)
 8561        .closest(".js-form-item, .js-form-submit, .js-form-wrapper")
 8562        [effect](duration); 8563    }
 8564  });
 8565  Drupal.states.State.aliases["invisible-slide"] = "!visible-slide";