Comparing version 0.0.5 to 0.0.6
@@ -1,8 +0,12 @@ | ||
var async = require('async'); | ||
var async = require('async'), | ||
EventEmitter = require('events').EventEmitter; | ||
var eventflow = module.exports = function eventflow (eventEmitter) { | ||
// We were passed a 'class'. | ||
if (eventEmitter.prototype && eventEmitter.prototype.on) { | ||
if (eventEmitter && eventEmitter.prototype && eventEmitter.prototype.on) { | ||
eventEmitter = eventEmitter.prototype; | ||
} | ||
else if (typeof eventEmitter === 'undefined') { | ||
eventEmitter = new EventEmitter; | ||
} | ||
@@ -41,2 +45,4 @@ // Attach async methods. | ||
}; | ||
return eventEmitter; | ||
}; | ||
@@ -43,0 +49,0 @@ |
{ | ||
"name": "eventflow", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Flow control for your event emitters", | ||
@@ -5,0 +5,0 @@ "main": "eventflow.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
13804
8
274