Skip to content

Instantly share code, notes, and snippets.

@marshall007
Created July 24, 2012 21:47
Show Gist options
  • Select an option

  • Save marshall007/3172889 to your computer and use it in GitHub Desktop.

Select an option

Save marshall007/3172889 to your computer and use it in GitHub Desktop.
$.when( t.mapTemplate, t.locations ).done( function () {
...
}
1. initial ajax call for locations
2. initial ajax call for template
3. fire another ajax call for locations
4. (1) finishes with response: { "data": "location1" }
5. (2) finishes with response: { "data": "location2" }
6. (3) finishes
at this point is the done function called with (1) data or (2) data?
if it's called with (1) is it then called again with (2)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment