This fiddle shows more or less what I am trying to do.
I am querying some results from a Parse.com database. The results are returned in the success callback.
Can anyone tell me the best way to work with them in the mainView() function? I would like to keep all queries separate from the logic of how they are displayed. I have tried quite a few different approaches, but haven’t been able to get it working.
Simply store a reference to
thisoutside the callback.http://jsfiddle.net/4XsLq/8/