Skip to content

Instantly share code, notes, and snippets.

@Chadtech
Created March 23, 2016 19:26
Show Gist options
  • Select an option

  • Save Chadtech/1bdbf4540323c1077015 to your computer and use it in GitHub Desktop.

Select an option

Save Chadtech/1bdbf4540323c1077015 to your computer and use it in GitHub Desktop.
// 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