mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
19 lines
458 B
JavaScript
19 lines
458 B
JavaScript
// 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
|
|
};
|