Skip to content

Commit

Permalink
加上shortvideo的声明, 不然报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ityao authored and JacksonTian committed Jun 17, 2015
1 parent 590762e commit b2e3b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ Handler.prototype.setHandler = function (type, fn) {
return this;
};

['text', 'image', 'voice', 'video', 'location', 'link', 'event', 'hardware', 'device_text', 'device_event'].forEach(function (method) {
['text', 'image', 'voice', 'video', 'location', 'link', 'event', 'shortvideo', 'hardware', 'device_text', 'device_event'].forEach(function (method) {
Handler.prototype[method] = function (fn) {
return this.setHandler(method, fn);
};
Expand Down

0 comments on commit b2e3b9f

Please sign in to comment.