Skip to content

Commit

Permalink
存在 mixin 组件中,事件调用时候,没有传输事件的 bug 修复。
Browse files Browse the repository at this point in the history
  • Loading branch information
shenqihui authored Feb 17, 2017
1 parent bc78265 commit 1af84d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wepy/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let $bindEvt = (config, com, prefix) => {
rst = comfn.apply(com, args.concat(evt));
}
com.$mixins.forEach((mix) => {
mix.methods[method] && (mixRst = mix.methods[method].apply(com, args));
mix.methods[method] && (mixRst = mix.methods[method].apply(com, args.concat(evt)));
});
com.$apply();
return comfn ? rst : mixRst;
Expand Down

0 comments on commit 1af84d2

Please sign in to comment.