This commit is contained in:
Julien Fontanet 2015-04-08 10:04:58 +02:00
parent fb9203d396
commit ea3219fa10

View File

@ -144,7 +144,7 @@ col.on('add', (added) => {
```javascript ```javascript
col.on('update', (updated) => { col.on('update', (updated) => {
forEach(updated, (value, key) => { forEach(updated, (value, key) => {
console.log('- %s: %j', key, value) console.log('± %s: %j', key, value)
}) })
}) })
``` ```
@ -153,12 +153,12 @@ col.on('update', (updated) => {
```javascript ```javascript
col.on('remove', (removed) => { col.on('remove', (removed) => {
// For consistency, `removed` is also a map but contrary to `ædded` // For consistency, `removed` is also a map but contrary to `added`
// and `updated`, the values associated to the keys are not // and `updated`, the values associated to the keys are not
// significant since the entries have already be removed. // significant since the entries have already be removed.
forEach(removed, (value, key) => { forEach(removed, (value, key) => {
console.log('± %s', key) console.log('- %s', key)
}) })
}) })
``` ```