Skip to content

Instantly share code, notes, and snippets.

@d4hines
Created August 14, 2019 19:02
Show Gist options
  • Save d4hines/e27d1c4cdb07d08ec0496db3e5726f42 to your computer and use it in GitHub Desktop.
Save d4hines/e27d1c4cdb07d08ec0496db3e5726f42 to your computer and use it in GitHub Desktop.
Workspace A is loaded
Workspace A is loaded
user requests to load B-> Switch Requested
Switch Requested
any window responds as NOT_READY -> Workspace A is loaded
all windows respond as READY -> Switch In Progress
Switch In Progress
any window fails to close -> Empty Workspace is loaded
all windows close -> Workspace B is loaded
Empty Workspace is loaded
Workspace B is loaded
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment