Xwam/Public/ecma/Xwam.ecma.js

25 lines
398 B
JavaScript
Raw Normal View History

2024-03-15 10:03:35 +00:00
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();
};