I am having a strange problem where the response param of 1st ajax call is being overwritten by the 2nd call's param. Code is:
When both drawDonutForExternalLogin & drawDonutForExtUser are called consecutively,the response variable of the later request(data param of success handler) overwrites the data param of 1st request.
The calls do complete almost at the same time always but when there is a difference this problem doesn't occur.The data set is also fine when the 2nd function is invoked from the success handler of 1st function.
Why the data param becomes identical when the calls are consecutive and finish at the same time?
I tried debugging the server side code by placing breakpoints but that also provides the delay between ajax requests thereby yielding correct result.
Any ideas please?