into的时候是否可以支持额外function
Closed this issue · 4 comments
fangk commented
const _loadDao = (app) => {
app.dao = {};
loading(`${app.baseDir}/app/dao`).into(app, 'dao', {
initializer: (module) => {
// return module;
return new module(app);
}
});
}
比如某些方法是不希望get的时候每次都new, 仅仅new一个挂到app.dao下是否就可以了?
popomore commented
+1
fengmk2 commented
可以尝试已经pr
Sent from my iPhone
On May 4, 2016, at 9:36 AM, 凯 方 notifications@github.com wrote:
function _loadDao(app) {
app.dao = {};
loading(${app.baseDir}/app/dao
).into(app, 'dao', function (module) {
// return module;
return new module(app);
});
}
比如某些方法是不希望get的时候每次都new, 仅仅new一个挂到app.dao下是否就可以了?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
fangk commented
版本号在pr里直接改? 还是先pr后再改?
popomore commented
版本号发布时改