events-bluebird
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,5 @@ | ||
## v1.0.2 | ||
* [FIXED] - async listeners should always be called with the Emitter object as context (this keyword) | ||
## v1.0.1 | ||
@@ -2,0 +6,0 @@ |
@@ -63,5 +63,6 @@ "use strict"; | ||
function emit(method, type) { | ||
var er, handler, len, args, i, events, promise; | ||
var er, handler, len, args, i, events, promise, self; | ||
var doError = (type === 'error'); | ||
self = this; | ||
events = this._events; | ||
@@ -106,3 +107,3 @@ if (events) | ||
promiseCandidate = Promise[method](listeners, function(handler) { | ||
return handler.apply(this, args); | ||
return handler.apply(self, args); | ||
}); | ||
@@ -109,0 +110,0 @@ } |
{ | ||
"name": "events-bluebird", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": { | ||
@@ -24,2 +24,9 @@ "email": "fogine@opmbx.org" | ||
], | ||
"files": [ | ||
"index.js", | ||
"COPYRIGHT", | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"peerDependencies": { | ||
@@ -26,0 +33,0 @@ "bluebird": ">=2.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
41198
102
6