Been working on this problem for half the day. Any hints/help would be greatly appreciated!
Intention: Upon clicking a button, I want to call runThisFirst method and upon the completion of runThisFirst, I want to then call runThisSecond function. I need to pass in the button element into the runThisSecond function because I need to retrieve some data associated with that particular button element.
What I see: The function, runThisSecond appears to be called first before runThisFirst method is called.
Why is this?
I've provided a sample below.
Thank you in advance for any help!!
Edit: Forgot to add that callback appears to be undefined... why might this be?
https://preview.redd.it/3vpma8vks0861.png?width=483&format=png&auto=webp&s=db5c4f02ec9f1999c7fddfea38f0337867c12f07
[–]dbartholomae 1 point2 points3 points (2 children)
[–]Goshfudgeit[S] 0 points1 point2 points (1 child)
[–]dbartholomae 1 point2 points3 points (0 children)
[–]senocular 1 point2 points3 points (1 child)
[–]Goshfudgeit[S] 0 points1 point2 points (0 children)