Created
March 23, 2016 19:26
-
-
Save Chadtech/1bdbf4540323c1077015 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
| // A | |
| (function() { | |
| var app, main; | |
| main = document.getElementById('main'); | |
| app = Elm.embed(Elm.main, main); | |
| app.ports.ye.subscribe(function(what) { | |
| return console.log('DOING WHAT', what); | |
| }); | |
| }).call(this); | |
| // B | |
| (function() { | |
| var main = document.getElementById('main'); | |
| var app = Elm.embed(Elm.Main, main); | |
| app.ports.ye.subscribe(function(what) { | |
| return console.log('DOING WHAT', what); | |
| }); | |
| }).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment