@makano/rew 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -79,6 +79,13 @@ module.exports.prepareContext = function (
|
|
79
79
|
}, Main: (cb) => {
|
80
80
|
if(cb?.main){
|
81
81
|
cb.main._class = cb;
|
82
|
+
if(cb.prepare){
|
83
|
+
cb.prepare((object) => {
|
84
|
+
for(let i in object){
|
85
|
+
cb[i] = object[i];
|
86
|
+
}
|
87
|
+
});
|
88
|
+
}
|
82
89
|
}
|
83
90
|
return (['main', cb?.main ?? cb]);
|
84
91
|
}, attach: (object) => {
|