Skip to content

Commit

Permalink
build(core): build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Nov 23, 2018
1 parent 33f4c1f commit fde3a18
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/core/dist/wepy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ function initComputed (vm, computed) {

var WepyApp = (function (Base$$1) {
function WepyApp () {

Base$$1.call(this);
}

if ( Base$$1 ) WepyApp.__proto__ = Base$$1;
Expand Down Expand Up @@ -1929,6 +1929,17 @@ function patchAppLifecycle (appConfig, options, rel) {

return callUserMethod(vm, vm.$options, 'onLaunch', args);
};

['onShow', 'onHide', 'onError', 'onPageNotFound'].forEach(function (k) {
if (options[k] && isFunc(options[k])) {
appConfig[k] = function () {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];

return callUserMethod(app, app.$options, k, args);
};
}
});
}
function patchLifecycle (output, options, rel, isComponent) {

Expand Down

0 comments on commit fde3a18

Please sign in to comment.