2016-04-04 21:31:15 -04:00
|
|
|
/* jshint esnext: true */
|
2016-05-18 23:12:36 -04:00
|
|
|
import AbstractModule from './AbstractModule';
|
2016-04-04 21:31:15 -04:00
|
|
|
|
2016-05-18 23:12:36 -04:00
|
|
|
export default class extends AbstractModule {
|
2016-08-22 10:30:46 -04:00
|
|
|
constructor(options) {
|
|
|
|
|
super(options);
|
2016-04-04 21:31:15 -04:00
|
|
|
|
2016-08-22 10:30:46 -04:00
|
|
|
this.$el.on('click.Button', (event) => {
|
|
|
|
|
this.$document.trigger('Title.changeLabel', [$(event.currentTarget).val()]);
|
|
|
|
|
});
|
|
|
|
|
}
|
2016-04-04 21:31:15 -04:00
|
|
|
|
2016-08-22 10:30:46 -04:00
|
|
|
destroy() {
|
|
|
|
|
this.$el.off('.Button');
|
|
|
|
|
}
|
2016-04-04 21:31:15 -04:00
|
|
|
}
|