From e361ab520b96b8b0d1efa81b0a8aba916da6d144 Mon Sep 17 00:00:00 2001 From: tunnckoCore Date: Tue, 17 Jan 2017 20:29:25 +0200 Subject: resolve readme conflict --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0cb5424..92400e7 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,22 @@ ## Why Mitt? -- **Microscopic:** weighs less than 200 bytes gzipped -- **Useful:** a wildcard `"*"` event type listens to all events -- **Familiar:** same names & ideas as [Node's EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) -- **Functional:** methods don't rely on `this` -- **Great Name:** somehow [mitt](https://npm.im/mitt) wasn't taken +- **Microscopic:** weighs less than 200 bytes gzipped +- **Useful:** a wildcard `"*"` event type listens to all events +- **Familiar:** same names & ideas as [Node's EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) +- **Functional:** methods don't rely on `this` +- **Great Name:** somehow [mitt](https://npm.im/mitt) wasn't taken -> Mitt was made for the browser, but works in any JavaScript runtime. It has no dependencies and only uses basic language features. It probably works in Internet Explorer 5. +> Mitt was made for the browser, but works in any JavaScript runtime. It has no dependencies and supports IE9+. + + +## Examples & Demos + + + Preact + Mitt Codepen Demo +
+ preact + mitt preview +
* * * @@ -50,7 +59,7 @@ emitter.off('foo', onFoo) // unlisten Mitt: Tiny (~200b) functional event emitter / pubsub. -Returns **Mitt** +Returns **Mitt** #### emit -- cgit v1.2.3