sg-event-emitter
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -50,5 +50,7 @@ 'use strict'; | ||
value: function dispatchEvent(name) { | ||
var additionalData = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
if (this.listeners[name]) { | ||
this.listeners[name].forEach(function (listener) { | ||
listener(); | ||
listener(additionalData); | ||
}); | ||
@@ -55,0 +57,0 @@ } |
{ | ||
"name": "sg-event-emitter", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Simple service registry", | ||
@@ -12,3 +12,3 @@ "main": "lib/EventEmitter.js", | ||
"build": "./node_modules/.bin/babel src --out-dir lib", | ||
"prebublish": "npm run test-all" | ||
"prepublish": "npm run test-all" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
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
7490
57