TRIVIAL: ES6ify AppEvents

This commit is contained in:
Régis Hanol 2014-06-05 18:51:39 +02:00
parent 2cb6bec014
commit c46b7f6181
3 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,9 @@
import AppEvents from 'discourse/lib/app-events';
export default { export default {
name: "inject-app-events", name: "inject-app-events",
initialize: function(container, application) { initialize: function(container, application) {
application.register('app-events:main', Discourse.AppEvents, { singleton: true }); application.register('app-events:main', AppEvents, { singleton: true });
application.inject('controller', 'appEvents', 'app-events:main'); application.inject('controller', 'appEvents', 'app-events:main');
application.inject('route', 'appEvents', 'app-events:main'); application.inject('route', 'appEvents', 'app-events:main');

View file

@ -0,0 +1 @@
export default Ember.Object.extend(Ember.Evented);

View file

@ -1 +0,0 @@
Discourse.AppEvents = Ember.Object.extend(Ember.Evented);