mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 05:38:10 -05:00
[guide] comment out ellipses
This commit is contained in:
committed by
Jordan Harband
parent
41fa95eef9
commit
ee492a73ba
@@ -289,7 +289,7 @@ Other Style Guides
|
||||
const has = Object.prototype.hasOwnProperty; // cache the lookup once, in module scope.
|
||||
/* or */
|
||||
import has from 'has';
|
||||
…
|
||||
// ...
|
||||
console.log(has.call(object, key));
|
||||
```
|
||||
|
||||
@@ -2915,7 +2915,7 @@ Other Style Guides
|
||||
// bad
|
||||
$(this).trigger('listingUpdated', listing.id);
|
||||
|
||||
...
|
||||
// ...
|
||||
|
||||
$(this).on('listingUpdated', (e, listingId) => {
|
||||
// do something with listingId
|
||||
@@ -2928,7 +2928,7 @@ Other Style Guides
|
||||
// good
|
||||
$(this).trigger('listingUpdated', { listingId: listing.id });
|
||||
|
||||
...
|
||||
// ...
|
||||
|
||||
$(this).on('listingUpdated', (e, data) => {
|
||||
// do something with data.listingId
|
||||
|
||||
Reference in New Issue
Block a user