You are reading a single comment by @Akisame and its replies. Click here to read the full conversation.
  • Thanks Gordon. It has been nearly 2 decades since I used js at all.
    That is at least one step closer. Now it is executing the drawing function sequentially but it is doing it 5 times with the final value of "a".
    It seems it is passing the reference of "a" in stead of the value of "a" to the promise function...
    I forgot the mess javascripts references were in...
    I completely forgot how to pass a variable to a promise without referencing to itself...
    Am I forced to use an array and passing that to the promise function to resolve this or is there a better way to do this?
    So far I have tried quite a few things but it seems all that is passed to the promise function is the final value of "a"

About

Avatar for Akisame @Akisame started