Skip to content

Commit 4a3d696

Browse files
committed
Bump 0.8.16
1 parent 7f5b757 commit 4a3d696

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var wechat = require('./lib/wechat');
22
// 等待回复
33
wechat.List = require('./lib/list');
44
// 事件
5-
wechat.Event = require('./lib/event');
5+
wechat.Event = require('./lib/events');
66

77
var API = require('./lib/api_common');
88
// 菜单接口

lib/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ var Event = function () {
22
this.events = {};
33
};
44

5-
Event.protptype.add = function (event, callback) {
5+
Event.prototype.add = function (event, callback) {
66
this.events[event] = callback;
77
return this;
88
};
99

10-
Event.protptype._dispatch = function (message, req, res, next) {
10+
Event.prototype._dispatch = function (message, req, res, next) {
1111
if (this.events[message.Event]) {
1212
this.events[message.Event](message, req, res, next);
1313
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechat",
3-
"version": "0.8.15",
3+
"version": "0.8.16",
44
"description": "微信公共平台Node库",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)