Code style cleanup + Testing event dispatching between modules

This commit is contained in:
dominiclord
2016-04-04 21:31:15 -04:00
parent 6d3b8134f1
commit 09016521ed
9 changed files with 464 additions and 82 deletions

View File

@@ -0,0 +1,21 @@
/* jshint esnext: true */
import Module from './Module';
class Generic extends Module {
constructor(options) {
super();
this.$el = options.$el;
this.$el.on('click', (event) => {
this.$document.trigger('title.changeLabel', [$(event.currentTarget).val()]);
});
}
// Destroy
// ==========================================================================
destroy() {
this.$el.off();
}
}
export default Generic;