Skip to content

Commit

Permalink
Merge pull request #2 from bios21/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
lsagetlethias authored Oct 31, 2016
2 parents 17ac165 + 41b0130 commit 125b4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eventemitter-promise",
"version": "0.0.2",
"version": "0.0.3",
"description": "Event Emitter with lazy promise.",
"main": "bin/EventEmitter.node.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/EventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if (typeof(module) !== 'undefined' && module.exports) {
* @private
*/
_destroyPromise(event) {
this._promises[event].kill();
this._promises[event] && this._promises[event].kill();
delete this._promises[event];
}

Expand Down

0 comments on commit 125b4ac

Please sign in to comment.