Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
prevent ember searching for non-existant custom event dispatchers
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield authored and acburdine committed Feb 4, 2017
1 parent aebe06d commit b792e45
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/initializers/event-dispatcher.js
Original file line number Diff line number Diff line change
@@ -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
};

0 comments on commit b792e45

Please sign in to comment.