prevent ember searching for non-existant custom event dispatchers

This commit is contained in:
Kevin Ansfield 2017-02-03 13:24:52 +00:00 committed by Austin Burdine
parent 8620daab52
commit 210057ef49

View 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
};