mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
TRIVIAL: ES6ify AppEvents
This commit is contained in:
parent
2cb6bec014
commit
c46b7f6181
3 changed files with 4 additions and 2 deletions
|
@ -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 a new issue