Created
June 11, 2016 00:32
-
-
Save chadaustin/13967298d46bd61033ee3298b97eab59 to your computer and use it in GitHub Desktop.
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 characters
| let compiler = newCompiler(result => { | |
| match result { | |
| Ok(res) => { | |
| outputTextArea.classList.remove("has-errors") | |
| outputTextArea.value = res | |
| } | |
| Err(err) => { | |
| outputTextArea.classList.add("has-errors") | |
| outputTextArea.value = err | |
| } | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment