@feizheng/event-mitt
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "@feizheng/event-mitt", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A mini and light event emitter", | ||
@@ -26,4 +26,3 @@ "homepage": "https://github.com/afeiship/event-mitt", | ||
"gulp-umd": "^2.0.0", | ||
"jest": "^23.6.0", | ||
"next-key-map": "github:afeiship/next-key-map" | ||
"jest": "^23.6.0" | ||
}, | ||
@@ -30,0 +29,0 @@ "publishConfig": { |
@@ -28,3 +28,3 @@ # event-mitt | ||
// attach events: | ||
p1.on('ev1', () => { | ||
var res = p1.on('ev1', () => { | ||
console.log('ev1', sum); | ||
@@ -53,2 +53,5 @@ sum = sum + 1; | ||
p1.emit('ev3'); | ||
// destory: | ||
res.destroy(); | ||
``` | ||
@@ -55,0 +58,0 @@ |
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
6256
10
6
61