Edit sample code in 24.1 to follow rule 8.1

Replaced function expression with arrow function notation.
This commit is contained in:
Fredrik Olovsson
2016-01-27 11:53:57 +01:00
parent 79a6bfa101
commit 784d029980

View File

@@ -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
});
```