Skip to content

Instantly share code, notes, and snippets.

@JBreit
Created March 14, 2016 15:28
Show Gist options
  • Save JBreit/3f2e1b4735cb2b6a3485 to your computer and use it in GitHub Desktop.
Save JBreit/3f2e1b4735cb2b6a3485 to your computer and use it in GitHub Desktop.
export default class Application {
constructor(container) {
this[container] = container;
}
init() {
this.startSequence();
}
startSequence() {
console.log(this[container]);
}
stopSequence() {
console.log('Stopped!');
}
}
let container = document.getElementById('app');
let ToDo = new Application(container);
ToDo.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment