Trying to call methods of subject and that works splendid, I reach whatever info needed from the docs requested within the methods. Now I want to use that information outside of the methods and whenever I try that the variable come out undefined
.
From what I have read these methods are asynchronous
and hence the undefined
result.
So, how to solve it? Doing a $.ajax({.. async:false..})
kind of works against the purpose, *a*jax is *a*sync. Any suggestions, except for the Q&D async:false
option?