Ghost/ghost/admin/app/services/event-bus.js
Gabriel Csapo 75a138cb39 [chore] Ran native classes codemod for app/services (#2240)
refs https://github.com/TryGhost/Admin/pull/2227

- a continuation of #2227 that runs the native classes codemod against app/services
2022-02-02 22:11:11 +00:00

19 lines
407 B
JavaScript

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);
}
}