ee-event-emitter
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name" : "ee-event-emitter" | ||
, "description" : "A portable event emitter class" | ||
, "version" : "1.0.0" | ||
, "version" : "1.0.1" | ||
, "homepage" : "https://github.com/eventEmitter/ee-event-emitter" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -14,9 +14,11 @@ { | ||
constructor() { | ||
get eventHandlers() { | ||
if (!this._eventHandlers) { | ||
Object.defineProperty(this, '_eventHandlers', { | ||
value: new Map() | ||
, configurable: true | ||
}); | ||
} | ||
// store events in a hidden proeprty | ||
Object.defineProperty(this, 'eventHandlers', { | ||
value: new Map() | ||
, configurable: true | ||
}); | ||
return this._eventHandlers; | ||
} | ||
@@ -27,3 +29,2 @@ | ||
/** | ||
@@ -30,0 +31,0 @@ * emit an event with n paramters |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9175
118
0