Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
fix $.event.emit()
Browse files Browse the repository at this point in the history
  • Loading branch information
leizongmin committed Nov 28, 2016
1 parent ff895ed commit a01cae1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/index.js
Expand Up @@ -26,7 +26,6 @@ module.exports = class ProjectCore {
this.event.on = (e, fn) => this._event.on(e, utils.wrapFn(fn, this));
this.event.once = (e, fn) => this._event.once(e, utils.wrapFn(fn, this));
this.event.emit = (e, ...args) => {
args.push(err => this.emit('error', err));
this._event.emit(e, ...args);
};
this._event.on('error', err => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "project-core",
"version": "2.0.2",
"version": "2.1.0",
"description": "project core",
"main": "index.js",
"files": [
Expand Down

0 comments on commit a01cae1

Please sign in to comment.