Skip to content

Commit 1b6bcd0

Browse files
committed
[guide] more precisely refer to an "object literal" instead of just a "hash"
Fixes airbnb#1680.
1 parent fc34709 commit 1b6bcd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ Other Style Guides
31703170
## Events
31713171
31723172
<a name="events--hash"></a><a name="24.1"></a>
3173-
- [25.1](#events--hash) When attaching data payloads to events (whether DOM events or something more proprietary like Backbone events), pass a hash instead of a raw value. This allows a subsequent contributor to add more data to the event payload without finding and updating every handler for the event. For example, instead of:
3173+
- [25.1](#events--hash) When attaching data payloads to events (whether DOM events or something more proprietary like Backbone events), pass an object literal (also known as a "hash") instead of a raw value. This allows a subsequent contributor to add more data to the event payload without finding and updating every handler for the event. For example, instead of:
31743174
31753175
```javascript
31763176
// bad

0 commit comments

Comments
 (0)