Skip to content

Instantly share code, notes, and snippets.

@user24
Created July 15, 2014 10:25
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 user24/c68c92938fc2e7a9d3a5 to your computer and use it in GitHub Desktop.
Save user24/c68c92938fc2e7a9d3a5 to your computer and use it in GitHub Desktop.
// This is called whenever any data changes that affects the weekly totals
// What we do in that case is modify our local representation of the weekly data and emit an event
// This way, modules can listen for that event and respond to it without having to wait for
// the server to generate new weekly totals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment