fix example to meet standard listingId v listingID

fixed code example to meet the standard. `listingId` changed to `listingID` 
See - Naming Conventions: Acronyms and initialisms should always be all capitalized, or all lowercased.
This commit is contained in:
Ben Fortner
2018-01-16 09:55:54 -05:00
committed by GitHub
parent a08afd77d5
commit 262b07b106

View File

@@ -3178,8 +3178,8 @@ Other Style Guides
// ...
$(this).on('listingUpdated', (e, listingId) => {
// do something with listingId
$(this).on('listingUpdated', (e, listingID) => {
// do something with listingID
});
```
@@ -3187,12 +3187,12 @@ Other Style Guides
```javascript
// good
$(this).trigger('listingUpdated', { listingId: listing.id });
$(this).trigger('listingUpdated', { listingID: listing.id });
// ...
$(this).on('listingUpdated', (e, data) => {
// do something with data.listingId
// do something with data.listingID
});
```