How to use the ember-hifi/services/hifi.SERVICE_EVENT_MAP.forEach function in ember-hifi

To help you get started, we’ve selected a few ember-hifi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nypublicradio / ember-hifi / tests / dummy / app / components / event-display / component.js View on Github external
addServiceEvents: function(item) {
    this.addSoundEvents(item);

    SERVICE_EVENT_MAP.forEach(e => {
      item.on(e.event, (data) => {
        this.eventsList.pushObject({name: e.event, data: data, type: 'service'})
      });
    });
  },