25 lines
402 B
JavaScript
25 lines
402 B
JavaScript
|
const Basics = function(){
|
||
|
|
||
|
const self = this;
|
||
|
let started = false;
|
||
|
|
||
|
const constructor = () => {};
|
||
|
|
||
|
this.start = callback => {
|
||
|
|
||
|
const end = status => AnyankaKeys.prototype.execute(callback, status);
|
||
|
|
||
|
if(started){
|
||
|
end(false);
|
||
|
return false;
|
||
|
};
|
||
|
started = true;
|
||
|
|
||
|
end(true);
|
||
|
|
||
|
return true;
|
||
|
};
|
||
|
|
||
|
constructor();
|
||
|
|
||
|
};
|