Comparing version 1.0.0 to 1.0.1
@@ -20,3 +20,3 @@ 'use strict'; | ||
listeners = this._events[event] || []; | ||
listeners = (this._events || {})[event] || []; | ||
if (listeners && !Array.isArray(listeners)) { | ||
@@ -27,3 +27,3 @@ listeners = [ listeners ]; | ||
/** | ||
* Simple | ||
* Simple async helper utility. | ||
* | ||
@@ -30,0 +30,0 @@ * @param {Array} stack The various of event listeners are async emitted. |
{ | ||
"name": "asyncemit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Asynchronously emit event an event based on the arguments length.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,2 +22,6 @@ describe('asyncemit', function () { | ||
it('returns it self instead of a boolean', function () { | ||
assume(ee.asyncemit('foo', function () {})).equals(ee); | ||
}); | ||
it('works with `sync` emitters', function (next) { | ||
@@ -24,0 +28,0 @@ next = assume.plan(2, next); |
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
8499
149