From 784d029980003d1ff90b472abcd0974496d6d765 Mon Sep 17 00:00:00 2001 From: Fredrik Olovsson Date: Wed, 27 Jan 2016 11:53:57 +0100 Subject: [PATCH] Edit sample code in 24.1 to follow rule 8.1 Replaced function expression with arrow function notation. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b324226f..e8edf149 100644 --- a/README.md +++ b/README.md @@ -2099,7 +2099,7 @@ Other Style Guides ... - $(this).on('listingUpdated', function (e, listingId) { + $(this).on('listingUpdated', (e, listingId) => { // do something with listingId }); ``` @@ -2112,7 +2112,7 @@ Other Style Guides ... - $(this).on('listingUpdated', function (e, data) { + $(this).on('listingUpdated', (e, data) => { // do something with data.listingId }); ```