mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
prevent ember searching for non-existant custom event dispatchers
This commit is contained in:
parent
8620daab52
commit
210057ef49
18
ghost/admin/app/initializers/event-dispatcher.js
Normal file
18
ghost/admin/app/initializers/event-dispatcher.js
Normal file
@ -0,0 +1,18 @@
|
||||
// TODO: remove this file once canDispatchToEventManager is deprecated
|
||||
// https://github.com/emberjs/ember.js/issues/14754
|
||||
import Ember from 'ember';
|
||||
|
||||
const {EventDispatcher} = Ember;
|
||||
|
||||
const myEventDispatcher = EventDispatcher.extend({
|
||||
canDispatchToEventManager: false
|
||||
});
|
||||
|
||||
export function initialize(application) {
|
||||
application.register('event_dispatcher:main', myEventDispatcher);
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'event-dispatcher',
|
||||
initialize
|
||||
};
|
Loading…
Reference in New Issue
Block a user