We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e22029 + 33363af commit 7a9ca5aCopy full SHA for 7a9ca5a
README.md
@@ -814,12 +814,21 @@
814
})(this);↵
815
```
816
817
- - Use indentation when making long method chains.
+ - Use indentation when making long method chains. Use a leading dot, which
818
+ emphasizes that the line is a method call, not a new statement.
819
820
```javascript
821
// bad
822
$('#items').find('.selected').highlight().end().find('.open').updateCount();
823
824
+ // bad
825
+ $('#items').
826
+ find('selected').
827
+ highlight().
828
+ end().
829
+ find('.open').
830
+ updateCount();
831
+
832
// good
833
$('#items')
834
.find('.selected')
0 commit comments