diff options
| author | Alexander Gudulin <[email protected]> | 2017-01-16 22:05:05 +0100 |
|---|---|---|
| committer | Alexander Gudulin <[email protected]> | 2017-01-16 22:05:05 +0100 |
| commit | 3fb2dc21223b414afc6f1fa3c8bc8fc7de2d48d5 (patch) | |
| tree | 61907d336e05204720049872ef746eb1c9f2d5fa /src | |
| parent | 0d51fe34ce1b1ccf7c99726d9c577a40ea840da7 (diff) | |
Fixes #9: use Object.create(null) over {}
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 36b25f1..bc9532f 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ */ export default function mitt(all) { // Arrays of event handlers, keyed by type - all = all || {}; + all = all || Object.create(null); // Get or create a named handler list function list(type) { |
