Skip to content

Commit

Permalink
fix(core): fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhandsome authored and Gcaufy committed Jun 6, 2019
1 parent 683c0fc commit b6669fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/weapp/init/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export function patchLifecycle (output, options, rel, isComponent) {
let lifecycle = getLifecycycle(WEAPP_PAGE_LIFECYCLE, rel, 'page');

lifecycle.forEach(k => {
if (!pageLifecycle[k] && options[k] && (isFunc(options[k]) || isArr(options[k]))) {
pageLifecycle[k] = function (...args) {
if (!output[k] && options[k] && (isFunc(options[k]) || isArr(options[k]))) {
output[k] = function (...args) {
return callUserMethod(this.$wepy, this.$wepy.$options, k, args);
}
}
Expand Down

0 comments on commit b6669fa

Please sign in to comment.