From 262b07b106bdb83f476c77923340aa9c679da9a2 Mon Sep 17 00:00:00 2001 From: Ben Fortner Date: Tue, 16 Jan 2018 09:55:54 -0500 Subject: [PATCH] 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. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ae1aaf8a3b..d6f4836fa5 100644 --- a/README.md +++ b/README.md @@ -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 }); ```