Created
June 30, 2014 11:49
-
-
Save nagat01/2163d81e457ac9ca6669 to your computer and use it in GitHub Desktop.
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
// dom types | |
import org.scalajs.dom._ | |
// global | |
import scala.scalajs.js.Dynamic.global | |
// document with good type | |
val document = global.document.asInstanceOf[Document] | |
// body with good type | |
val body = document.getElementsByTagName("body").item(0).asInstanceOf[HTMLElement] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment