Created
May 15, 2016 00:50
-
-
Save eezis/d9d903401c073fbc3aed1dd2894273b9 to your computer and use it in GitHub Desktop.
app.js for elixir 1.2 and elm 0.17 (elm embedded in app.js)
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
// This works | |
var elmDiv = document.getElementById('elm-main') | |
, elmApp = Elm.WordGame.embed(elmDiv) | |
// but this works too. Why to both work, which is preferred? | |
var elmDiv = document.getElementById('elm-main') | |
Elm.WordGame.embed(elmDiv) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment