Xwam/Public/ecma/Xwam.ecma.js
2024-03-15 11:03:35 +01:00

25 lines
398 B
JavaScript

Xwam = function(inputs){
const self = this;
let started = false;
const construct = () => {};
this.start = callback => {
const end = status => typeof callback == "function" && callback(status);
if(started){
end(false);
return false;
};
started = true;
end(true);
return true;
};
construct();
};