arbitrary-emitter
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -29,11 +29,8 @@ 'use strict' | ||
const link = links.get(key) || createNewLink(key) | ||
const wrap = {} | ||
const fn = () => { | ||
link.add(fn) | ||
const rm = () => link.delete(fn) | ||
function fn () { | ||
method(arguments) | ||
wrap.remove() | ||
rm() | ||
} | ||
link.add(fn) | ||
wrap.remove = () => { | ||
link.delete(fn) | ||
} | ||
}, | ||
@@ -40,0 +37,0 @@ |
{ | ||
"name": "arbitrary-emitter", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Event emitter with Map/Set sugar", | ||
@@ -5,0 +5,0 @@ "main": "arbitrary-emitter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7080
127