Skip to content

Instantly share code, notes, and snippets.

@lihaoyi
Created October 22, 2014 21:48
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 lihaoyi/18bc16c0d22c89ce49d6 to your computer and use it in GitHub Desktop.
Save lihaoyi/18bc16c0d22c89ce49d6 to your computer and use it in GitHub Desktop.
def thing = {
val sp = span.value
lazy val box: HTMLTextAreaElement = textarea(
onChange := () => span.innerHTML = box.value
).value
div(box, sp)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment