broken executeWithCallback function
bluffcon opened this issue ยท 5 comments
fancymenu.executeWithCallback(actionType, actionValue, onSuccess, onFailure)
^ ONFAILURE COMES BEFORE ONSUCCESS
onfailure runs every execution, onsuccess runs only on success from my observations
if youll trust the wiki, onsuccess runs every single execution and onfailure runs on success
I mean I suck at JS, but wouldn't it be best to run onSuccess() only on success and onFailure() only on failure??
This would, in theory, always run one of the two, but never both.
I mean I suck at JS, but wouldn't it be best to run
onSuccess()only on success andonFailure()only on failure?? This would, in theory, always run one of the two, but never both.
https://cdn.discordapp.com/attachments/733066398879711312/1430202690901639219/image.png
idk what the code was like but this looks like not intended
they SHOULD be doing that as you described. they werent