mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
15 lines
314 B
JavaScript
15 lines
314 B
JavaScript
|
import Service from 'ember-service';
|
||
|
import Evented from 'ember-evented';
|
||
|
|
||
|
export default Service.extend(Evented, {
|
||
|
publish() {
|
||
|
return this.trigger(...arguments);
|
||
|
},
|
||
|
subscribe() {
|
||
|
return this.on(...arguments);
|
||
|
},
|
||
|
unsubscribe() {
|
||
|
return this.off(...arguments);
|
||
|
}
|
||
|
});
|