ember-off-canvas-components icon indicating copy to clipboard operation
ember-off-canvas-components copied to clipboard

Custom events not registered from initializer

Open pixelhandler opened this issue 10 years ago • 1 comments

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 avatar May 11 '15 16:05 pixelhandler

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

pixelhandler avatar Oct 06 '15 16:10 pixelhandler