pixelhandler / ember-off-canvas-components

A micro library containing a group of Ember.js Components that interact to create an Off-Canvas user interface.
http://pixelhandler.github.io/ember-off-canvas-components/
MIT License
41 stars 4 forks source link

Custom events not registered from initializer #8

Open pixelhandler opened 9 years ago

pixelhandler commented 9 years ago

See: https://github.com/emberjs/ember.js/issues/10534 - FastBoot changes seem to break setting Application#customEvents within initializer

For now the consuming application will need to setup the custom events for toggleOffCanvas, expandOffCanvas, collapseOffCanvas. see: https://github.com/pixelhandler/ember-off-canvas-components/blob/master/addon/initializers/custom-events.js#L6-L11

See http://emberjs.com/api/classes/Ember.Application.html#toc_event-delegation for how to setup customEvents

var App = Ember.Application.create({
  customEvents: {
    toggleOffCanvas: 'toggleOffCanvas',
    expandOffCanvas: 'expandOffCanvas',
    collapseOffCanvas: 'collapseOffCanvas'
  }
});
pixelhandler commented 9 years ago

Perhaps this is resolved now: https://github.com/emberjs/rfcs/pull/69#issuecomment-131172505