Last active
December 17, 2018 06:30
-
-
Save pyoner/68090717552c8a724095a9f6db4d37f3 to your computer and use it in GitHub Desktop.
Memoize Sketch&
This file contains 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 characters
Memoize Sketch& | |
Search | |
InitialSearch | |
search -> Processing | |
Processing | |
success -> Found | |
failure -> Not found | |
Found | |
search -> Processing | |
reset -> InitialSearch | |
open bookmark -> Bookmarks | |
open url -> URL | |
Not found | |
search -> Processing | |
reset -> InitialSearch | |
History | |
InitialHistory | |
add -> Add | |
search -> Search | |
Add | |
Loading* | |
ok -> Ok | |
error -> Err | |
Ok | |
Err | |
Bookmarks | |
InitialBookmarks | |
Shortcuts | |
URL |
This file contains 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 characters
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