mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:42:46 +08:00
TRIVIAL: ES6ify AppEvents
This commit is contained in:
parent
2cb6bec014
commit
c46b7f6181
|
@ -1,7 +1,9 @@
|
|||
import AppEvents from 'discourse/lib/app-events';
|
||||
|
||||
export default {
|
||||
name: "inject-app-events",
|
||||
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('route', 'appEvents', 'app-events:main');
|
||||
|
|
1
app/assets/javascripts/discourse/lib/app-events.js.es6
Normal file
1
app/assets/javascripts/discourse/lib/app-events.js.es6
Normal file
|
@ -0,0 +1 @@
|
|||
export default Ember.Object.extend(Ember.Evented);
|
|
@ -1 +0,0 @@
|
|||
Discourse.AppEvents = Ember.Object.extend(Ember.Evented);
|
Loading…
Reference in New Issue
Block a user