mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
75a138cb39
refs https://github.com/TryGhost/Admin/pull/2227 - a continuation of #2227 that runs the native classes codemod against app/services
19 lines
407 B
JavaScript
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);
|
|
}
|
|
}
|