Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix typo.
  • Loading branch information
Kirill Yakovenko authored Mar 14, 2018
1 parent 3fc0e0b commit cd434bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Listen to events such as property changes and actions:
device.on('power', power => console.log('Power changed to', power));

// The device is available for event handlers
const handler = (action, device) => console.log('Action', e.action, 'performed on', device);
const handler = ({ action }, device) => console.log('Action', action, 'performed on', device);
device1.on('action', handler);
device2.on('action', handler);
```
Expand Down

0 comments on commit cd434bc

Please sign in to comment.