Created
November 19, 2013 02:00
Revisions
-
mikeric created this gist
Nov 19, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ # synchronous ajax calls (one at a time, then # start the next one, etc. then do something) sessions.fetch success -> rooms.fetch success -> do_something # async ajax calls (all at the same time, then # do something when all are finished) $.when(sessions.fetch(), rooms.fetch()).then -> do_something