From cd434bc0ed6232667b33f22278a47589ae882bd6 Mon Sep 17 00:00:00 2001 From: Kirill Yakovenko Date: Wed, 14 Mar 2018 17:48:55 +0200 Subject: [PATCH] Update README.md Fix typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 107f17d..7bfcf97 100644 --- a/README.md +++ b/README.md @@ -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); ```