35 lines
636 B
JavaScript
35 lines
636 B
JavaScript
function FPDAM2023(anp, inputs){
|
|
|
|
const self = this;
|
|
let started = false;
|
|
|
|
let admission = this.admission;
|
|
|
|
const construct = () => {
|
|
|
|
FPDAM2023.Admission && (admission = self.admission = new FPDAM2023.Admission(self, inputs));
|
|
|
|
};
|
|
|
|
this.start = callback => {
|
|
|
|
const end = status => typeof callback == "function" && callback(status);
|
|
|
|
if(started){
|
|
end(false);
|
|
return false;
|
|
};
|
|
started = true;
|
|
|
|
self.launch(self, ["admission"], () => {
|
|
end(true);
|
|
});
|
|
|
|
end(true);
|
|
|
|
return true;
|
|
};
|
|
|
|
construct();
|
|
|
|
}; |