aboutsummaryrefslogtreecommitdiff
path: root/example.js
diff options
context:
space:
mode:
authortunnckoCore <[email protected]>2017-01-17 19:13:41 +0200
committertunnckoCore <[email protected]>2017-01-17 19:13:41 +0200
commite7c222c0e840b34eb56566da453d7a12a257c61f (patch)
tree784bfbf1f45ff70e83835305f0d857775349d710 /example.js
parent8b4f2defd7fca02674a45d89900557a6a4b5e5c3 (diff)
add editorconfig, fix original identation
Diffstat (limited to 'example.js')
-rw-r--r--example.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/example.js b/example.js
index dac0983..f8c52d5 100644
--- a/example.js
+++ b/example.js
@@ -4,12 +4,12 @@ var mitt = require('./dist/mitt')
var ee = mitt()
ee
- .on('*', (type, arg) => console.log('wildcard:', type, arg))
- .on('foo', (one, two, three) => console.log('foo1:', one, two, three))
- .on('foo', (one, two, three) => console.log('foo2:', one, two, three))
- .on('bar', (arg) => console.log('bar:', arg))
- .emit('foo', 1, 2, 3)
- .emit('bar', 444)
+ .on('*', (type, arg) => console.log('wildcard:', type, arg))
+ .on('foo', (one, two, three) => console.log('foo1:', one, two, three))
+ .on('foo', (one, two, three) => console.log('foo2:', one, two, three))
+ .on('bar', (arg) => console.log('bar:', arg))
+ .emit('foo', 1, 2, 3)
+ .emit('bar', 444)
console.log(ee.all)