Skip to content

Instantly share code, notes, and snippets.

@mrspeaker
Created May 8, 2015 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrspeaker/64a9c11b6254ed8c8e22 to your computer and use it in GitHub Desktop.
Save mrspeaker/64a9c11b6254ed8c8e22 to your computer and use it in GitHub Desktop.
Vis promises
$.when(
createBaseCharts('.tile-area')
.then(createTicks),
fetchTalkContentData()
.then(parseTalkContentData)
)
.then((charts, data) => {
fadeUnnecessaryTicks(charts)
.then(addWordDensityBubbles)
.then(addCursor)
.then(addVideoScrubber);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment