Ghost/ghost/admin/app/services/event-bus.js

19 lines
407 B
JavaScript
Raw Normal View History

import Evented from '@ember/object/evented';
import Service from '@ember/service';
import classic from 'ember-classic-decorator';
@classic
export default class EventBusService extends Service.extend(Evented) {
publish() {
return this.trigger(...arguments);
}
subscribe() {
return this.on(...arguments);
}
unsubscribe() {
return this.off(...arguments);
}
}