Skip to content

Commit 6df983d

Browse files
committed
README: Remove note about indentation. Code should be indented with tabs, the build process converts them to spaces for readability.
1 parent b704894 commit 6df983d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ To build and deploy your changes for previewing in a [jquery-wp-content](https:/
4646
* **Passive**: Click handlers are bound to elements in the collection when `.click()` is called
4747

4848
### Code Style
49-
Code in the API documentation should follow the [jQuery Core Style Guide](http://docs.jquery.com/JQuery_Core_Style_Guidelines) with the following addition and exception:
49+
Code in the API documentation should follow the [jQuery Core Style Guide](http://docs.jquery.com/JQuery_Core_Style_Guidelines) with the following addition:
5050

5151
* **Document ready syntax**: Use `$( document ).ready(function() {` instead of `$(function() {` as it's harder for new users to distinguish the difference between the latter and an IIFE.
52-
* **Indentation**: Core guidelines say to use tabs. In API documentation, *use 2 spaces instead*. This helps keep the line width manageable and avoid horizontal scrollbars.
5352

5453
#### Code within prose content (paragraphs and the like):
5554
* Methods: use a dot, followed by the method name, followed by parentheses: e.g. The `.focus()` method is a shortcut for `.bind('focus', handler)` in the first and second variations, and `.trigger('focus')` in the third.

0 commit comments

Comments
 (0)