Skip to content

Commit 784d029

Browse files
Edit sample code in 24.1 to follow rule 8.1
Replaced function expression with arrow function notation.
1 parent 79a6bfa commit 784d029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ Other Style Guides
20992099

21002100
...
21012101

2102-
$(this).on('listingUpdated', function (e, listingId) {
2102+
$(this).on('listingUpdated', (e, listingId) => {
21032103
// do something with listingId
21042104
});
21052105
```
@@ -2112,7 +2112,7 @@ Other Style Guides
21122112

21132113
...
21142114

2115-
$(this).on('listingUpdated', function (e, data) {
2115+
$(this).on('listingUpdated', (e, data) => {
21162116
// do something with data.listingId
21172117
});
21182118
```

0 commit comments

Comments
 (0)