summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js')
-rw-r--r--remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js b/remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js
new file mode 100644
index 0000000000..0777f6de72
--- /dev/null
+++ b/remote/test/puppeteer/vendor/mitt/dist/mitt.modern.js
@@ -0,0 +1,2 @@
+export default function(e){return{all:e=e||new Map,on(t,n){const s=e.get(t);s&&s.push(n)||e.set(t,[n])},off(t,n){const s=e.get(t);s&&s.splice(s.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>{e(n)}),(e.get("*")||[]).slice().map(e=>{e(t,n)})}}}
+//# sourceMappingURL=mitt.modern.js.map